deviceModel property Null safety

Future<String> deviceModel

Future method to get device model

Implementation

static Future<String> get deviceModel async {
  final model = await _channel.invokeMethod("getModel");
  return model == null ? "" : model;
}