getRobotInfo method

  1. @override
Future<Map<String, dynamic>> getRobotInfo()
override

Implementation

@override
Future<Map<String, dynamic>> getRobotInfo() async {
  try {
    final result = await methodChannel.invokeMethod('getRobotInfo');
    if (result is Map) {
      return Map<String, dynamic>.from(result);
    }
    return {};
  } on PlatformException catch (e) {
    debugPrint('Error calling getRobotInfo: ${e.message}');
    return {};
  }
}