when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult aria2(
    1. String gid,
    2. MyEvent event
    ),
  2. required TResult webSocketConnected(),
  3. required TResult websocketClosed(),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(String gid, MyEvent event) aria2,
  required TResult Function() webSocketConnected,
  required TResult Function() websocketClosed,
}) =>
    throw _privateConstructorUsedError;