SliverGridDelegate.extend constructor Null safety

const SliverGridDelegate.extend(
  1. {required double maxCrossAxisExtent,
  2. @Default(0.0) double mainAxisSpacing,
  3. @Default(0.0) double crossAxisSpacing,
  4. @Default(1.0) double childAspectRatio,
  5. double? mainAxisExtent}
)

Implementation

const factory SliverGridDelegate.extend({
  required double maxCrossAxisExtent,
  @Default(0.0) double mainAxisSpacing,
  @Default(0.0) double crossAxisSpacing,
  @Default(1.0) double childAspectRatio,
  double? mainAxisExtent,
}) = SliverGridDelegateWithMaxCrossAxisExtent;