when<TResult extends Object?> method
Null safety
- {required 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
- required 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
- required 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
- required TResult toBoxAdapter( ),
- required TResult fillRemaining( ),
- required TResult fillViewport(
- Key? key,
- SliverChildDelegate delegate,
- double viewportFraction,
- bool padEnds
- required TResult fixedExtentList(
- Key? key,
- SliverChildDelegate delegate,
- double itemExtent
- required TResult offstage( ),
- required TResult list(
- Key? key,
- SliverChildDelegate delegate
- required TResult grid(
- Key? key,
- SliverChildDelegate delegate,
- SliverGridDelegate gridDelegate
- required TResult ignorePointer( ),
- required TResult opacity( ),
- required TResult padding(
- Key? key,
- EdgeInsets padding,
- Sliver? sliver
- required TResult prototypeExtendList(
- Key? key,
- SliverChildDelegate delegate,
- Widget prototypeItem
- required TResult safeArea( ),
- required TResult visibility( ),
- required TResult visibilityMaintain( )}
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required 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,
required 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,
required 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,
required TResult Function(Key? key, Widget? child) toBoxAdapter,
required TResult Function(
Key? key, Widget? child, bool hasScrollBody, bool fillOverscroll)
fillRemaining,
required TResult Function(Key? key, SliverChildDelegate delegate,
double viewportFraction, bool padEnds)
fillViewport,
required TResult Function(
Key? key, SliverChildDelegate delegate, double itemExtent)
fixedExtentList,
required TResult Function(Key? key, bool offstage, Sliver? sliver) offstage,
required TResult Function(Key? key, SliverChildDelegate delegate) list,
required TResult Function(Key? key, SliverChildDelegate delegate,
SliverGridDelegate gridDelegate)
grid,
required TResult Function(
Key? key, bool ignoring, bool? ignoringSemantics, Sliver? sliver)
ignorePointer,
required TResult Function(Key? key, double opacity,
bool alwaysIncludeSemantics, Sliver? sliver)
opacity,
required TResult Function(Key? key, EdgeInsets padding, Sliver? sliver)
padding,
required TResult Function(
Key? key, SliverChildDelegate delegate, Widget prototypeItem)
prototypeExtendList,
required TResult Function(Key? key, bool left, bool top, bool right,
bool bottom, EdgeInsets minimum, Sliver sliver)
safeArea,
required TResult Function(
Key? key,
Sliver sliver,
Sliver replacementSliver,
bool visible,
bool maintainState,
bool maintainAnimation,
bool maintainSize,
bool maintainSemantics,
bool maintainInteractivity)
visibility,
required TResult Function(
Key? key, Sliver sliver, Sliver replacementSliver, bool visible)
visibilityMaintain,
}) =>
throw _privateConstructorUsedError;