Sliver class Null safety

Implementers
Annotations
  • @freezed

Constructors

Sliver.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, @Default(true) bool forceElevated, Color? backgroundColor, Color? foregroundColor, @Default(true) bool primary, bool? centerTitle, @Default(true) bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, @Default(true) bool floating, @Default(true) bool pinned, @Default(true) bool snap, @Default(true) bool stretch, @Default(100.0) double stretchTriggerOffset, ShapeBorder? shape, @Default(56.0) double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle, @Default(true) bool forceMaterialTransparency})
const
factory
Sliver.appBarLarge({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, @Default(false) bool forceElevated, Color? backgroundColor, Color? foregroundColor, @Default(true) bool primary, bool? centerTitle, @Default(false) bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, @Default(false) bool floating, @Default(true) bool pinned, @Default(false) bool snap, @Default(false) bool stretch, @Default(100.0) double stretchTriggerOffset, ShapeBorder? shape, @Default(64.0) double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle})
const
factory
Sliver.appBarMedium({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, @Default(false) bool forceElevated, Color? backgroundColor, Color? foregroundColor, @Default(true) bool primary, bool? centerTitle, @Default(false) bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, @Default(false) bool floating, @Default(true) bool pinned, @Default(false) bool snap, @Default(false) bool stretch, @Default(100.0) double stretchTriggerOffset, ShapeBorder? shape, @Default(64.0) double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle})
const
factory
Sliver.fillRemaining({Key? key, Widget? child, @Default(true) bool hasScrollBody, @Default(false) bool fillOverscroll})
const
factory
Sliver.fillViewport({Key? key, required SliverChildDelegate delegate, @Default(1.0) double viewportFraction, @Default(true) bool padEnds})
const
factory
Sliver.fixedExtentList({Key? key, required SliverChildDelegate delegate, required double itemExtent})
const
factory
Sliver.fromJson(Map<String, Object?> json)
factory
Sliver.grid({Key? key, required SliverChildDelegate delegate, required SliverGridDelegate gridDelegate})
const
factory
Sliver.ignorePointer({Key? key, @Default(true) bool ignoring, bool? ignoringSemantics, Sliver? sliver})
const
factory
Sliver.list({Key? key, required SliverChildDelegate delegate})
const
factory
Sliver.offstage({Key? key, @Default(true) bool offstage, Sliver? sliver})
const
factory
Sliver.opacity({Key? key, required double opacity, @Default(false) bool alwaysIncludeSemantics, Sliver? sliver})
const
factory
Sliver.padding({Key? key, required EdgeInsets padding, Sliver? sliver})
const
factory
Sliver.prototypeExtendList({Key? key, required SliverChildDelegate delegate, required Widget prototypeItem})
const
factory
Sliver.safeArea({Key? key, @Default(true) bool left, @Default(true) bool top, @Default(true) bool right, @Default(true) bool bottom, @Default(EdgeInsets.zero) EdgeInsets minimum, required Sliver sliver})
const
factory
Sliver.toBoxAdapter({Key? key, Widget? child})
const
factory
Sliver.visibility({Key? key, required Sliver sliver, @Default(SliverToBoxAdapter()) Sliver replacementSliver, @Default(true) bool visible, @Default(false) bool maintainState, @Default(false) bool maintainAnimation, @Default(false) bool maintainSize, @Default(false) bool maintainSemantics, @Default(false) bool maintainInteractivity})
const
factory
Sliver.visibilityMaintain({Key? key, required Sliver sliver, @Default(SliverToBoxAdapter()) Sliver replacementSliver, @Default(true) bool visible})
const
factory

Properties

copyWith → $SliverCopyWith<Sliver>
@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?>({required TResult appBar(SliverAppBar value), required TResult appBarMedium(SliverAppBarMedium value), required TResult appBarLarge(SliverAppBarLarge value), required TResult toBoxAdapter(SliverToBoxAdapter value), required TResult fillRemaining(SliverFillRemaining value), required TResult fillViewport(SliverFillViewport value), required TResult fixedExtentList(SliverFixedExtentList value), required TResult offstage(SliverOffstage value), required TResult list(SliverList value), required TResult grid(SliverGrid value), required TResult ignorePointer(SliverIgnorePointer value), required TResult opacity(SliverOpacity value), required TResult padding(SliverPadding value), required TResult prototypeExtendList(SliverPrototypeExtentList value), required TResult safeArea(SliverSafeArea value), required TResult visibility(SliverVisibility value), required TResult visibilityMaintain(SliverVisibilityMaintain value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? appBar(SliverAppBar value)?, TResult? appBarMedium(SliverAppBarMedium value)?, TResult? appBarLarge(SliverAppBarLarge value)?, TResult? toBoxAdapter(SliverToBoxAdapter value)?, TResult? fillRemaining(SliverFillRemaining value)?, TResult? fillViewport(SliverFillViewport value)?, TResult? fixedExtentList(SliverFixedExtentList value)?, TResult? offstage(SliverOffstage value)?, TResult? list(SliverList value)?, TResult? grid(SliverGrid value)?, TResult? ignorePointer(SliverIgnorePointer value)?, TResult? opacity(SliverOpacity value)?, TResult? padding(SliverPadding value)?, TResult? prototypeExtendList(SliverPrototypeExtentList value)?, TResult? safeArea(SliverSafeArea value)?, TResult? visibility(SliverVisibility value)?, TResult? visibilityMaintain(SliverVisibilityMaintain value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult appBar(SliverAppBar value)?, TResult appBarMedium(SliverAppBarMedium value)?, TResult appBarLarge(SliverAppBarLarge value)?, TResult toBoxAdapter(SliverToBoxAdapter value)?, TResult fillRemaining(SliverFillRemaining value)?, TResult fillViewport(SliverFillViewport value)?, TResult fixedExtentList(SliverFixedExtentList value)?, TResult offstage(SliverOffstage value)?, TResult list(SliverList value)?, TResult grid(SliverGrid value)?, TResult ignorePointer(SliverIgnorePointer value)?, TResult opacity(SliverOpacity value)?, TResult padding(SliverPadding value)?, TResult prototypeExtendList(SliverPrototypeExtentList value)?, TResult safeArea(SliverSafeArea value)?, TResult visibility(SliverVisibility value)?, TResult visibilityMaintain(SliverVisibilityMaintain value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({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, bool forceElevated, Color? backgroundColor, Color? foregroundColor, bool primary, bool? centerTitle, bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating, bool pinned, bool snap, bool stretch, double stretchTriggerOffset, ShapeBorder? shape, double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle, bool forceMaterialTransparency)?, TResult appBarMedium(Key? key, Widget? leading, bool automaticallyImplyLeading, Widget? title, List<Widget>? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation, double? scrolledUnderElevation, Color? shadowColor, Color? surfaceTintColor, bool forceElevated, Color? backgroundColor, Color? foregroundColor, bool primary, bool? centerTitle, bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating, bool pinned, bool snap, bool stretch, double stretchTriggerOffset, ShapeBorder? shape, double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle)?, TResult appBarLarge(Key? key, Widget? leading, bool automaticallyImplyLeading, Widget? title, List<Widget>? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation, double? scrolledUnderElevation, Color? shadowColor, Color? surfaceTintColor, bool forceElevated, Color? backgroundColor, Color? foregroundColor, bool primary, bool? centerTitle, bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating, bool pinned, bool snap, bool stretch, double stretchTriggerOffset, ShapeBorder? shape, double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle)?, TResult toBoxAdapter(Key? key, Widget? child)?, TResult fillRemaining(Key? key, Widget? child, bool hasScrollBody, bool fillOverscroll)?, TResult fillViewport(Key? key, SliverChildDelegate delegate, double viewportFraction, bool padEnds)?, TResult fixedExtentList(Key? key, SliverChildDelegate delegate, double itemExtent)?, TResult offstage(Key? key, bool offstage, Sliver? sliver)?, TResult list(Key? key, SliverChildDelegate delegate)?, TResult grid(Key? key, SliverChildDelegate delegate, SliverGridDelegate gridDelegate)?, TResult ignorePointer(Key? key, bool ignoring, bool? ignoringSemantics, Sliver? sliver)?, TResult opacity(Key? key, double opacity, bool alwaysIncludeSemantics, Sliver? sliver)?, TResult padding(Key? key, EdgeInsets padding, Sliver? sliver)?, TResult prototypeExtendList(Key? key, SliverChildDelegate delegate, Widget prototypeItem)?, TResult safeArea(Key? key, bool left, bool top, bool right, bool bottom, EdgeInsets minimum, Sliver sliver)?, TResult visibility(Key? key, Sliver sliver, Sliver replacementSliver, bool visible, bool maintainState, bool maintainAnimation, bool maintainSize, bool maintainSemantics, bool maintainInteractivity)?, TResult visibilityMaintain(Key? key, Sliver sliver, Sliver replacementSliver, bool visible)?, 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?>({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, bool forceElevated, Color? backgroundColor, Color? foregroundColor, bool primary, bool? centerTitle, bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating, bool pinned, bool snap, bool stretch, double stretchTriggerOffset, ShapeBorder? shape, double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle, bool forceMaterialTransparency), required TResult appBarMedium(Key? key, Widget? leading, bool automaticallyImplyLeading, Widget? title, List<Widget>? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation, double? scrolledUnderElevation, Color? shadowColor, Color? surfaceTintColor, bool forceElevated, Color? backgroundColor, Color? foregroundColor, bool primary, bool? centerTitle, bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating, bool pinned, bool snap, bool stretch, double stretchTriggerOffset, ShapeBorder? shape, double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle), required TResult appBarLarge(Key? key, Widget? leading, bool automaticallyImplyLeading, Widget? title, List<Widget>? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation, double? scrolledUnderElevation, Color? shadowColor, Color? surfaceTintColor, bool forceElevated, Color? backgroundColor, Color? foregroundColor, bool primary, bool? centerTitle, bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating, bool pinned, bool snap, bool stretch, double stretchTriggerOffset, ShapeBorder? shape, double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle), required TResult toBoxAdapter(Key? key, Widget? child), required TResult fillRemaining(Key? key, Widget? child, bool hasScrollBody, bool fillOverscroll), required TResult fillViewport(Key? key, SliverChildDelegate delegate, double viewportFraction, bool padEnds), required TResult fixedExtentList(Key? key, SliverChildDelegate delegate, double itemExtent), required TResult offstage(Key? key, bool offstage, Sliver? sliver), required TResult list(Key? key, SliverChildDelegate delegate), required TResult grid(Key? key, SliverChildDelegate delegate, SliverGridDelegate gridDelegate), required TResult ignorePointer(Key? key, bool ignoring, bool? ignoringSemantics, Sliver? sliver), required TResult opacity(Key? key, double opacity, bool alwaysIncludeSemantics, Sliver? sliver), required TResult padding(Key? key, EdgeInsets padding, Sliver? sliver), required TResult prototypeExtendList(Key? key, SliverChildDelegate delegate, Widget prototypeItem), required TResult safeArea(Key? key, bool left, bool top, bool right, bool bottom, EdgeInsets minimum, Sliver sliver), required TResult visibility(Key? key, Sliver sliver, Sliver replacementSliver, bool visible, bool maintainState, bool maintainAnimation, bool maintainSize, bool maintainSemantics, bool maintainInteractivity), required TResult visibilityMaintain(Key? key, Sliver sliver, Sliver replacementSliver, bool visible)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({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, bool forceElevated, Color? backgroundColor, Color? foregroundColor, bool primary, bool? centerTitle, bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating, bool pinned, bool snap, bool stretch, double stretchTriggerOffset, ShapeBorder? shape, double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle, bool forceMaterialTransparency)?, TResult? appBarMedium(Key? key, Widget? leading, bool automaticallyImplyLeading, Widget? title, List<Widget>? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation, double? scrolledUnderElevation, Color? shadowColor, Color? surfaceTintColor, bool forceElevated, Color? backgroundColor, Color? foregroundColor, bool primary, bool? centerTitle, bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating, bool pinned, bool snap, bool stretch, double stretchTriggerOffset, ShapeBorder? shape, double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle)?, TResult? appBarLarge(Key? key, Widget? leading, bool automaticallyImplyLeading, Widget? title, List<Widget>? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation, double? scrolledUnderElevation, Color? shadowColor, Color? surfaceTintColor, bool forceElevated, Color? backgroundColor, Color? foregroundColor, bool primary, bool? centerTitle, bool excludeHeaderSemantics, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating, bool pinned, bool snap, bool stretch, double stretchTriggerOffset, ShapeBorder? shape, double toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle)?, TResult? toBoxAdapter(Key? key, Widget? child)?, TResult? fillRemaining(Key? key, Widget? child, bool hasScrollBody, bool fillOverscroll)?, TResult? fillViewport(Key? key, SliverChildDelegate delegate, double viewportFraction, bool padEnds)?, TResult? fixedExtentList(Key? key, SliverChildDelegate delegate, double itemExtent)?, TResult? offstage(Key? key, bool offstage, Sliver? sliver)?, TResult? list(Key? key, SliverChildDelegate delegate)?, TResult? grid(Key? key, SliverChildDelegate delegate, SliverGridDelegate gridDelegate)?, TResult? ignorePointer(Key? key, bool ignoring, bool? ignoringSemantics, Sliver? sliver)?, TResult? opacity(Key? key, double opacity, bool alwaysIncludeSemantics, Sliver? sliver)?, TResult? padding(Key? key, EdgeInsets padding, Sliver? sliver)?, TResult? prototypeExtendList(Key? key, SliverChildDelegate delegate, Widget prototypeItem)?, TResult? safeArea(Key? key, bool left, bool top, bool right, bool bottom, EdgeInsets minimum, Sliver sliver)?, TResult? visibility(Key? key, Sliver sliver, Sliver replacementSliver, bool visible, bool maintainState, bool maintainAnimation, bool maintainSize, bool maintainSemantics, bool maintainInteractivity)?, TResult? visibilityMaintain(Key? key, Sliver sliver, Sliver replacementSliver, bool visible)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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