attach abstract method

Future<void> attach(
  1. int generation,
  2. Map<String, Object?> settings
)

Called once per Dart isolate before anything else. A new generation tells the native side a hot restart happened: drop every listener and pending callback from the previous isolate.

Implementation

Future<void> attach(int generation, Map<String, Object?> settings);