close method
Returns a Future that resolves when all open interfaces are released and the device session has ended.
Implementation
@override
Future close(dynamic device) {
return methodChannel
.invokeMethod<bool>('close', device)
.then<void>((dynamic result) => result);
}