whenOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
  1. {TResult? count(
    1. int crossAxisCount,
    2. double mainAxisSpacing,
    3. double crossAxisSpacing,
    4. double childAspectRatio,
    5. double? mainAxisExtent
    )?,
  2. TResult? extend(
    1. double maxCrossAxisExtent,
    2. double mainAxisSpacing,
    3. double crossAxisSpacing,
    4. double childAspectRatio,
    5. double? mainAxisExtent
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(
          int crossAxisCount,
          double mainAxisSpacing,
          double crossAxisSpacing,
          double childAspectRatio,
          double? mainAxisExtent)?
      count,
  TResult? Function(
          double maxCrossAxisExtent,
          double mainAxisSpacing,
          double crossAxisSpacing,
          double childAspectRatio,
          double? mainAxisExtent)?
      extend,
}) =>
    throw _privateConstructorUsedError;