SliverGridDelegate class Null safety

Implementers
Annotations
  • @freezed

Constructors

SliverGridDelegate.count({required int crossAxisCount, @Default(0.0) double mainAxisSpacing, @Default(0.0) double crossAxisSpacing, @Default(1.0) double childAspectRatio, double? mainAxisExtent})
const
factory
SliverGridDelegate.extend({required double maxCrossAxisExtent, @Default(0.0) double mainAxisSpacing, @Default(0.0) double crossAxisSpacing, @Default(1.0) double childAspectRatio, double? mainAxisExtent})
const
factory
SliverGridDelegate.fromJson(Map<String, Object?> json)
factory

Properties

childAspectRatio double
read-only, inherited
copyWith → $SliverGridDelegateCopyWith<SliverGridDelegate>
@JsonKey(ignore: true), read-only, inherited
crossAxisSpacing double
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
mainAxisExtent double?
read-only, inherited
mainAxisSpacing double
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

map<TResult extends Object?>({required TResult count(SliverGridDelegateWithFixedCrossAxisCount value), required TResult extend(SliverGridDelegateWithMaxCrossAxisExtent value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? count(SliverGridDelegateWithFixedCrossAxisCount value)?, TResult? extend(SliverGridDelegateWithMaxCrossAxisExtent value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult count(SliverGridDelegateWithFixedCrossAxisCount value)?, TResult extend(SliverGridDelegateWithMaxCrossAxisExtent value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult count(int crossAxisCount, double mainAxisSpacing, double crossAxisSpacing, double childAspectRatio, double? mainAxisExtent)?, TResult extend(double maxCrossAxisExtent, double mainAxisSpacing, double crossAxisSpacing, double childAspectRatio, double? mainAxisExtent)?, 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 count(int crossAxisCount, double mainAxisSpacing, double crossAxisSpacing, double childAspectRatio, double? mainAxisExtent), required TResult extend(double maxCrossAxisExtent, double mainAxisSpacing, double crossAxisSpacing, double childAspectRatio, double? mainAxisExtent)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? count(int crossAxisCount, double mainAxisSpacing, double crossAxisSpacing, double childAspectRatio, double? mainAxisExtent)?, TResult? extend(double maxCrossAxisExtent, double mainAxisSpacing, double crossAxisSpacing, double childAspectRatio, double? mainAxisExtent)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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