dispose method

Future<void> dispose()

Release the native composer handle held by this instance.

Implementation

Future<void> dispose() async {
  final composerId = _composerId;
  if (composerId == null) {
    return;
  }
  _composerId = null;
  await PulsarPlatform.instance.patternRelease(composerId);
}