mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-30 02:49:08 +00:00
9 lines
259 B
Dart
9 lines
259 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
extension StreamBuilderExtension<T> on Stream<T> {
|
|
StreamBuilder<T> toStreamBuilder(
|
|
Widget Function(BuildContext, AsyncSnapshot<T>) builder,
|
|
) {
|
|
return StreamBuilder(stream: this, builder: builder);
|
|
}
|
|
}
|