whenOrNull<TResult extends Object?> method Null safety

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

Implementation

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