AppBar class Null safety

Implemented types

Constructors

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})
const
factory
AppBar.fromJson(Map<String, dynamic> json)
factory

Properties

actions → List<Widget>?
read-only
automaticallyImplyLeading → bool
read-only
backgroundColor → Color?
read-only
bottom → PreferredSizeWidget?
read-only
bottomOpacity → double
read-only
centerTitle → bool?
read-only
copyWith → _$$AppBarCopyWith<_$AppBar>
@JsonKey(ignore: true), read-only, override
elevation → double?
read-only
excludeHeaderSemantics → bool
read-only
flexibleSpace → Widget?
read-only
forceMaterialTransparency → bool
read-only
foregroundColor → Color?
read-only
hashCode → int
The hash code for this object.
read-only, inherited
key → Key?
read-only, override
leading → Widget?
read-only
leadingWidth → double?
read-only
primary → bool
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
scrolledUnderElevation → double?
read-only
shadowColor → Color?
read-only
shape → ShapeBorder?
read-only
surfaceTintColor → Color?
read-only
title → Widget?
read-only
titleSpacing → double?
read-only
titleTextStyle → TextStyle?
read-only
toolbarHeight → double?
read-only
toolbarOpacity → double
read-only
toolbarTextStyle → TextStyle?
read-only

Methods

map<TResult extends Object?>(TResult $default(PreferredSize value), {required TResult appBar(AppBar value), required TResult tabBar(TabBar value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>(TResult? $default(PreferredSize value)?, {TResult? appBar(AppBar value)?, TResult? tabBar(TabBar value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>(TResult $default(PreferredSize value)?, {TResult appBar(AppBar value)?, TResult tabBar(TabBar value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>(TResult $default(Key? key, Size preferredSize, Widget child)?, {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()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(Key? key, Size preferredSize, Widget child), {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, 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), required 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)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>(TResult? $default(Key? key, Size preferredSize, Widget child)?, {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)?}) → TResult?
@optionalTypeArgs, inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited