Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
SIKV committed Mar 14, 2024
1 parent f449099 commit d959d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ext/async_value_ext.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';

extension AsyncValueExt<T> on AsyncValue<T> {

Widget handleData<R>(Widget Function(T data)? data) {
Widget handleData(Widget Function(T data)? data) {
return maybeWhen(
data: data,
orElse: () { throw Exception('Unexpected AsyncValue state.'); },
Expand Down

0 comments on commit d959d51

Please sign in to comment.