maybeWhen method
Handles the different states of the Stream with an orElse fallback.
Implementation
Widget maybeWhen({
required Widget Function() orElse,
Widget Function(T data)? ready,
Widget Function(Object error, StackTrace stack)? error,
Widget Function()? loading,
}) {
throw Exception('This is just a stub for code generation.');
}