diff --git a/lib/ext/async_value_ext.dart b/lib/ext/async_value_ext.dart index 19904e9..1bb9677 100644 --- a/lib/ext/async_value_ext.dart +++ b/lib/ext/async_value_ext.dart @@ -3,7 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; extension AsyncValueExt on AsyncValue { - Widget handleData(Widget Function(T data)? data) { + Widget handleData(Widget Function(T data)? data) { return maybeWhen( data: data, orElse: () { throw Exception('Unexpected AsyncValue state.'); },