Close scanning API.
@override Future<bool> close() async => (await _channel.invokeMethod<bool>('close')) ?? false;