TabBar class Null safety

Implemented types

Constructors

TabBar({Key? key, required 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})
const
factory
TabBar.fromJson(Map<String, dynamic> json)
factory

Properties

automaticIndicatorColorAdjustment bool
read-only
copyWith → _$$TabBarCopyWith<_$TabBar>
@JsonKey(ignore: true), read-only, override
dividerColor Color?
read-only
dragStartBehavior DragStartBehavior
read-only
enableFeedback bool?
read-only
hashCode int
The hash code for this object.
read-only, inherited
indicator Decoration?
read-only
indicatorColor Color?
read-only
indicatorPadding EdgeInsets
read-only
indicatorSize TabBarIndicatorSize?
read-only
indicatorWeight double
read-only
isScrollable bool
read-only
key Key?
read-only, override
labelColor Color?
read-only
labelPadding EdgeInsets?
read-only
labelStyle TextStyle?
read-only
mouseCursor MouseCursor?
read-only
onTap IntSelectionCallback?
read-only
overlayColor MaterialStateProperty?
read-only
padding EdgeInsets?
read-only
physics ScrollPhysics?
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
splashBorderRadius BorderRadius?
read-only
tabs List<Widget>
read-only
unselectedLabelColor Color?
read-only
unselectedLabelStyle 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