PreferredSizeWidget class Null safety

Implementers
Annotations
  • @freezed

Constructors

PreferredSizeWidget({Key? key, required Size preferredSize, required Widget child})
const
factory
PreferredSizeWidget.appBar({Key? key, Widget? leading, @Default(true) 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, @Default(true) bool primary, bool? centerTitle, @Default(false) bool excludeHeaderSemantics, double? titleSpacing, @Default(1.0) double toolbarOpacity, @Default(1.0) double bottomOpacity, double? toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle, @Default(false) bool forceMaterialTransparency})
const
factory
PreferredSizeWidget.fromJson(Map<String, Object?> json)
factory
PreferredSizeWidget.tabBar({Key? key, required List<Widget> tabs, @Default(false) bool isScrollable, IntSelectionCallback? onTap, EdgeInsets? padding, Color? indicatorColor, @Default(true) bool automaticIndicatorColorAdjustment, @Default(2.0) double indicatorWeight, @Default(EdgeInsets.zero) EdgeInsets indicatorPadding, Decoration? indicator, TabBarIndicatorSize? indicatorSize, Color? dividerColor, Color? labelColor, TextStyle? labelStyle, EdgeInsets? labelPadding, Color? unselectedLabelColor, TextStyle? unselectedLabelStyle, @Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior, MaterialStateProperty? overlayColor, MouseCursor? mouseCursor, bool? enableFeedback, ScrollPhysics? physics, BorderRadius? splashBorderRadius})
const
factory

Properties

copyWith → $PreferredSizeWidgetCopyWith<PreferredSizeWidget>
@JsonKey(ignore: true), read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
key Key?
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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