getDisplayUnitForId method Null safety

Future<Map<String, dynamic>> getDisplayUnitForId(
  1. String unitId
)

Returns Display unit info as a Map

Implementation

static Future<Map<String, dynamic>> getDisplayUnitForId(String unitId) async {
  Map<dynamic, dynamic> response =
      await _channel.invokeMethod('getDisplayUnitForId', {'unitId': unitId});
  return response.cast<String, dynamic>();
}