DefaultDelegate<Q, R> constructor

const DefaultDelegate<Q, R>({
  1. required FutureOr<R> callback(
    1. Q message
    ),
})

Creates a DefaultDelegate with a single argument callback to be called when running on Dart VM.

Implementation

const factory DefaultDelegate({
  required FutureOr<R> Function(Q message) callback,
}) = _SingleArgumentDefaultDelegate<Q, R>;