maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  3. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeWhen<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,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;