dispose method

  1. @override
Future<bool> dispose()
inherited

dispose all

Implementation

@override
Future<bool> dispose() async {
  if (!_supportPlatform) return false;
  await cameraEvent.dispose();
  bool? state = await channel.invokeMethod<bool?>('dispose');
  _cameraOptions = null;
  _cameraFlash = null;
  _cameraZoom = null;
  if (_cameraZoom != null) super.dispose();
  return state ?? false;
}