dispose method

void dispose()

Free the native Fullstory Android/iOS SDK FSPage object that is linked to this Dart object.

This should only be called when a page is no longer needed, to allow the native counterpart to be garbage collected. This call is optional - usually Dart automatically handles this correctly.

Implementation

void dispose() async {
  _finalizer.detach(this);
  await FullstoryFlutterPlatform.instance.releasePage(await _id);
}