part of flutter_bluetooth; class BluetoothSocket{ final String _address; String get address => _address; final String _uuid; String get uuid => _uuid; BluetoothSocket._(this._address, this._uuid){ } write(Uint8List data) async{ await FlutterBluetooth._channel.invokeMethod('write', { 'address': address, 'uuid': uuid, 'data': data }); } close() async{ await FlutterBluetooth._channel.invokeMethod('close', { 'address': address, 'uuid': uuid }); } }