getTtyDevices method

  1. @override
Future<List<String>> getTtyDevices()
override

Gets a list of available TTY devices

Implementation

@override
Future<List<String>> getTtyDevices() async {
  final List<Object?>? result = await methodChannel.invokeMethod<List<Object?>>('getTty');
  return result?.map((device) => device.toString()).toList() ?? [];
}