maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. {TResult fixed(
    1. List<Widget> children,
    2. bool addAutomaticKeepAlives,
    3. bool addRepaintBoundaries,
    4. bool addSemanticIndexes,
    5. int semanticIndexOffset
    )?,
  2. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function(
              List<Widget> children,
              bool addAutomaticKeepAlives,
              bool addRepaintBoundaries,
              bool addSemanticIndexes,
              int semanticIndexOffset)?
          fixed,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;