removeFilter method

Future<void> removeFilter(
  1. int type
)

The remove filter

Throws a CameraException if the capture fails.

Implementation

Future<void> removeFilter(int type) async {
  if (!value.isInitialized! || _isDisposed) {
    throw CameraException(
      'Uninitialized CameraController.',
      'removeFilter was called on uninitialized CameraController',
    );
  }
  if (!Platform.isAndroid) {
    throw CameraException(
      'Unsupported platforms.',
      'removeFilter supported android.',
    );
  }
  try {
    await _channel.invokeMethod<void>(
      'removeFilter',
      <String, dynamic>{ 'type': type},
    );
  } on PlatformException catch (e) {
    throw CameraException(e.code, e.message);
  }
}