disconnect method

  1. @override
Future<bool> disconnect()
override

Disconnects from the MS SQL Server database.

Implementation

@override
Future<bool> disconnect() async {
  try {
    final bool? result = await methodChannel.invokeMethod<bool>('disconnect');
    return result ?? false;
  } on PlatformException catch (e) {
    throw refineError(e.message ?? e.toString());
  } catch (e) {
    throw refineError(e.toString());
  }
}