PreferredSize class Null safety

Implemented types

Constructors

PreferredSize({Key? key, required Size preferredSize, required Widget child})
const
factory
PreferredSize.fromJson(Map<String, dynamic> json)
factory

Properties

child Widget
read-only
copyWith → _$$PreferredSizeCopyWith<_$PreferredSize>
@JsonKey(ignore: true), read-only, override
hashCode int
The hash code for this object.
read-only, inherited
key Key?
read-only, override
preferredSize Size
read-only
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