toPlatformDeviceType method
Implementation
PlatformDeviceType toPlatformDeviceType() {
switch (this) {
case 'GPU':
return PlatformDeviceType.gpu;
}
throw Exception('$this is not known in enum PlatformDeviceType');
}
PlatformDeviceType toPlatformDeviceType() {
switch (this) {
case 'GPU':
return PlatformDeviceType.gpu;
}
throw Exception('$this is not known in enum PlatformDeviceType');
}