when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult none(),
  2. required TResult mobile(),
  3. required TResult wifi(),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() none,
  required TResult Function() mobile,
  required TResult Function() wifi,
}) =>
    throw _privateConstructorUsedError;