spawn<T> static method

Future<Isolate> spawn<T>(
  1. Future callback(
    1. T data
    ),
  2. T data, {
  3. SendPort? onExit,
  4. SendPort? onError,
})

Implementation

static Future<Isolate> spawn<T>(
  Future<dynamic> Function(T data) callback,
  T data, {
  SendPort? onExit,
  SendPort? onError,
}) async {
  return Isolate();
}