copyWith method
GridViewModel
copyWith({
- String? documentID,
- String? appId,
- String? name,
- GridViewScrollDirection? scrollDirection,
- GridViewGridType? type,
- int? crossAxisCount,
- MaxCrossAxisExtentType? maxCrossAxisExtentType,
- double? absoluteMaxCrossAxisExtent,
- double? relativeMaxCrossAxisExtent,
- double? childAspectRatio,
- double? padding,
- double? mainAxisSpacing,
- double? crossAxisSpacing,
- StorageConditionsModel? conditions,
override
Implementation
@override
GridViewModel copyWith({
String? documentID,
String? appId,
String? name,
GridViewScrollDirection? scrollDirection,
GridViewGridType? type,
int? crossAxisCount,
MaxCrossAxisExtentType? maxCrossAxisExtentType,
double? absoluteMaxCrossAxisExtent,
double? relativeMaxCrossAxisExtent,
double? childAspectRatio,
double? padding,
double? mainAxisSpacing,
double? crossAxisSpacing,
StorageConditionsModel? conditions,
}) {
return GridViewModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
name: name ?? this.name,
scrollDirection: scrollDirection ?? this.scrollDirection,
type: type ?? this.type,
crossAxisCount: crossAxisCount ?? this.crossAxisCount,
maxCrossAxisExtentType:
maxCrossAxisExtentType ?? this.maxCrossAxisExtentType,
absoluteMaxCrossAxisExtent:
absoluteMaxCrossAxisExtent ?? this.absoluteMaxCrossAxisExtent,
relativeMaxCrossAxisExtent:
relativeMaxCrossAxisExtent ?? this.relativeMaxCrossAxisExtent,
childAspectRatio: childAspectRatio ?? this.childAspectRatio,
padding: padding ?? this.padding,
mainAxisSpacing: mainAxisSpacing ?? this.mainAxisSpacing,
crossAxisSpacing: crossAxisSpacing ?? this.crossAxisSpacing,
conditions: conditions ?? this.conditions,
);
}