lint cleanup

This commit is contained in:
Christien Rioux 2023-07-26 17:42:11 -04:00
parent fe9d9f8aca
commit 9fa1666e8b
22 changed files with 178 additions and 155 deletions

View file

@ -14,12 +14,13 @@ class ExternalStreamState<T> {
streamController.add(newState);
}
AutoDisposeStreamProvider<T> provider() => AutoDisposeStreamProvider<T>((ref) async* {
if (await streamController.stream.isEmpty) {
yield currentState;
}
await for (final value in streamController.stream) {
yield value;
}
});
AutoDisposeStreamProvider<T> provider() =>
AutoDisposeStreamProvider<T>((ref) async* {
if (await streamController.stream.isEmpty) {
yield currentState;
}
await for (final value in streamController.stream) {
yield value;
}
});
}