create static method
Implementation
static Future<Device> create() async {
if (defaultTargetPlatform == TargetPlatform.iOS) {
var ios = await DeviceInfoPlugin().iosInfo;
return Device(
!ios.isPhysicalDevice,
'1.0.0',
ios.systemName,
ios.systemVersion,
ios.model,
ios.name,
FlutterCanary.instance.deviceid);
} else if (defaultTargetPlatform == TargetPlatform.android) {
throw 'not implement';
} else {
throw 'not implement';
}
}