JsDelegate constructor

const JsDelegate({
  1. required dynamic callback,
  2. Future fallback()?,
})

Creates a JsDelegate with a single argument callback to be called when running on Web.

callback must be either a String or a List of String.

Implementation

const factory JsDelegate({
  required dynamic callback,
  Future<dynamic> Function()? fallback,
}) = _SingleDynamicArgumentJsDelegate;