write method

  1. @override
Future<void> write(
  1. Uint8List data
)
override

Implementation

@override
Future<void> write(Uint8List data) async {
  if (writeDelay == Duration(seconds: 0)) {
    return _write(data);
  } else {
    Future<void>.delayed(writeDelay, () {
      return _write(data);
    });
  }
}