maybeWhen<TResult extends Object?> method
Null safety
- {TResult appBar(
- Key? key,
- Widget? leading,
- bool automaticallyImplyLeading,
- Widget? title,
- List<
Widget> ? actions, - Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation,
- double? scrolledUnderElevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- bool forceElevated,
- Color? backgroundColor,
- Color? foregroundColor,
- bool primary,
- bool? centerTitle,
- bool excludeHeaderSemantics,
- double? titleSpacing,
- double? collapsedHeight,
- double? expandedHeight,
- bool floating,
- bool pinned,
- bool snap,
- bool stretch,
- double stretchTriggerOffset,
- ShapeBorder? shape,
- double toolbarHeight,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- bool forceMaterialTransparency
- TResult appBarMedium(
- Key? key,
- Widget? leading,
- bool automaticallyImplyLeading,
- Widget? title,
- List<
Widget> ? actions, - Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation,
- double? scrolledUnderElevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- bool forceElevated,
- Color? backgroundColor,
- Color? foregroundColor,
- bool primary,
- bool? centerTitle,
- bool excludeHeaderSemantics,
- double? titleSpacing,
- double? collapsedHeight,
- double? expandedHeight,
- bool floating,
- bool pinned,
- bool snap,
- bool stretch,
- double stretchTriggerOffset,
- ShapeBorder? shape,
- double toolbarHeight,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle
- TResult appBarLarge(
- Key? key,
- Widget? leading,
- bool automaticallyImplyLeading,
- Widget? title,
- List<
Widget> ? actions, - Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation,
- double? scrolledUnderElevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- bool forceElevated,
- Color? backgroundColor,
- Color? foregroundColor,
- bool primary,
- bool? centerTitle,
- bool excludeHeaderSemantics,
- double? titleSpacing,
- double? collapsedHeight,
- double? expandedHeight,
- bool floating,
- bool pinned,
- bool snap,
- bool stretch,
- double stretchTriggerOffset,
- ShapeBorder? shape,
- double toolbarHeight,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle
- TResult toBoxAdapter( )?,
- TResult fillRemaining( )?,
- TResult fillViewport(
- Key? key,
- SliverChildDelegate delegate,
- double viewportFraction,
- bool padEnds
- TResult fixedExtentList(
- Key? key,
- SliverChildDelegate delegate,
- double itemExtent
- TResult offstage( )?,
- TResult list(
- Key? key,
- SliverChildDelegate delegate
- TResult grid(
- Key? key,
- SliverChildDelegate delegate,
- SliverGridDelegate gridDelegate
- TResult ignorePointer( )?,
- TResult opacity( )?,
- TResult padding(
- Key? key,
- EdgeInsets padding,
- Sliver? sliver
- TResult prototypeExtendList(
- Key? key,
- SliverChildDelegate delegate,
- Widget prototypeItem
- TResult safeArea( )?,
- TResult visibility( )?,
- TResult visibilityMaintain( )?,
- required TResult orElse(
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(
Key? key,
Widget? leading,
bool automaticallyImplyLeading,
Widget? title,
List<Widget>? actions,
Widget? flexibleSpace,
PreferredSizeWidget? bottom,
double? elevation,
double? scrolledUnderElevation,
Color? shadowColor,
Color? surfaceTintColor,
bool forceElevated,
Color? backgroundColor,
Color? foregroundColor,
bool primary,
bool? centerTitle,
bool excludeHeaderSemantics,
double? titleSpacing,
double? collapsedHeight,
double? expandedHeight,
bool floating,
bool pinned,
bool snap,
bool stretch,
double stretchTriggerOffset,
ShapeBorder? shape,
double toolbarHeight,
double? leadingWidth,
TextStyle? toolbarTextStyle,
TextStyle? titleTextStyle,
bool forceMaterialTransparency)?
appBar,
TResult Function(
Key? key,
Widget? leading,
bool automaticallyImplyLeading,
Widget? title,
List<Widget>? actions,
Widget? flexibleSpace,
PreferredSizeWidget? bottom,
double? elevation,
double? scrolledUnderElevation,
Color? shadowColor,
Color? surfaceTintColor,
bool forceElevated,
Color? backgroundColor,
Color? foregroundColor,
bool primary,
bool? centerTitle,
bool excludeHeaderSemantics,
double? titleSpacing,
double? collapsedHeight,
double? expandedHeight,
bool floating,
bool pinned,
bool snap,
bool stretch,
double stretchTriggerOffset,
ShapeBorder? shape,
double toolbarHeight,
double? leadingWidth,
TextStyle? toolbarTextStyle,
TextStyle? titleTextStyle)?
appBarMedium,
TResult Function(
Key? key,
Widget? leading,
bool automaticallyImplyLeading,
Widget? title,
List<Widget>? actions,
Widget? flexibleSpace,
PreferredSizeWidget? bottom,
double? elevation,
double? scrolledUnderElevation,
Color? shadowColor,
Color? surfaceTintColor,
bool forceElevated,
Color? backgroundColor,
Color? foregroundColor,
bool primary,
bool? centerTitle,
bool excludeHeaderSemantics,
double? titleSpacing,
double? collapsedHeight,
double? expandedHeight,
bool floating,
bool pinned,
bool snap,
bool stretch,
double stretchTriggerOffset,
ShapeBorder? shape,
double toolbarHeight,
double? leadingWidth,
TextStyle? toolbarTextStyle,
TextStyle? titleTextStyle)?
appBarLarge,
TResult Function(Key? key, Widget? child)? toBoxAdapter,
TResult Function(
Key? key, Widget? child, bool hasScrollBody, bool fillOverscroll)?
fillRemaining,
TResult Function(Key? key, SliverChildDelegate delegate,
double viewportFraction, bool padEnds)?
fillViewport,
TResult Function(Key? key, SliverChildDelegate delegate, double itemExtent)?
fixedExtentList,
TResult Function(Key? key, bool offstage, Sliver? sliver)? offstage,
TResult Function(Key? key, SliverChildDelegate delegate)? list,
TResult Function(Key? key, SliverChildDelegate delegate,
SliverGridDelegate gridDelegate)?
grid,
TResult Function(
Key? key, bool ignoring, bool? ignoringSemantics, Sliver? sliver)?
ignorePointer,
TResult Function(Key? key, double opacity, bool alwaysIncludeSemantics,
Sliver? sliver)?
opacity,
TResult Function(Key? key, EdgeInsets padding, Sliver? sliver)? padding,
TResult Function(
Key? key, SliverChildDelegate delegate, Widget prototypeItem)?
prototypeExtendList,
TResult Function(Key? key, bool left, bool top, bool right, bool bottom,
EdgeInsets minimum, Sliver sliver)?
safeArea,
TResult Function(
Key? key,
Sliver sliver,
Sliver replacementSliver,
bool visible,
bool maintainState,
bool maintainAnimation,
bool maintainSize,
bool maintainSemantics,
bool maintainInteractivity)?
visibility,
TResult Function(
Key? key, Sliver sliver, Sliver replacementSliver, bool visible)?
visibilityMaintain,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;