getTtyDevices method
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() ?? [];
}