maybeWhen<TResult extends Object?> method
Null safety
- TResult $default( )?,
- {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,
- ShapeBorder? shape,
- Color? backgroundColor,
- Color? foregroundColor,
- bool primary,
- bool? centerTitle,
- bool excludeHeaderSemantics,
- double? titleSpacing,
- double toolbarOpacity,
- double bottomOpacity,
- double? toolbarHeight,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- bool forceMaterialTransparency
- TResult tabBar(
- Key? key,
- List<
Widget> tabs, - bool isScrollable,
- IntSelectionCallback? onTap,
- EdgeInsets? padding,
- Color? indicatorColor,
- bool automaticIndicatorColorAdjustment,
- double indicatorWeight,
- EdgeInsets indicatorPadding,
- Decoration? indicator,
- TabBarIndicatorSize? indicatorSize,
- Color? dividerColor,
- Color? labelColor,
- TextStyle? labelStyle,
- EdgeInsets? labelPadding,
- Color? unselectedLabelColor,
- TextStyle? unselectedLabelStyle,
- DragStartBehavior dragStartBehavior,
- MaterialStateProperty? overlayColor,
- MouseCursor? mouseCursor,
- bool? enableFeedback,
- ScrollPhysics? physics,
- BorderRadius? splashBorderRadius
- required TResult orElse(
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
TResult Function(Key? key, Size preferredSize, Widget child)? $default, {
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,
ShapeBorder? shape,
Color? backgroundColor,
Color? foregroundColor,
bool primary,
bool? centerTitle,
bool excludeHeaderSemantics,
double? titleSpacing,
double toolbarOpacity,
double bottomOpacity,
double? toolbarHeight,
double? leadingWidth,
TextStyle? toolbarTextStyle,
TextStyle? titleTextStyle,
bool forceMaterialTransparency)?
appBar,
TResult Function(
Key? key,
List<Widget> tabs,
bool isScrollable,
IntSelectionCallback? onTap,
EdgeInsets? padding,
Color? indicatorColor,
bool automaticIndicatorColorAdjustment,
double indicatorWeight,
EdgeInsets indicatorPadding,
Decoration? indicator,
TabBarIndicatorSize? indicatorSize,
Color? dividerColor,
Color? labelColor,
TextStyle? labelStyle,
EdgeInsets? labelPadding,
Color? unselectedLabelColor,
TextStyle? unselectedLabelStyle,
DragStartBehavior dragStartBehavior,
MaterialStateProperty? overlayColor,
MouseCursor? mouseCursor,
bool? enableFeedback,
ScrollPhysics? physics,
BorderRadius? splashBorderRadius)?
tabBar,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;