toDeviceFormFactor method
Implementation
DeviceFormFactor toDeviceFormFactor() {
switch (this) {
case 'PHONE':
return DeviceFormFactor.phone;
case 'TABLET':
return DeviceFormFactor.tablet;
}
throw Exception('$this is not known in enum DeviceFormFactor');
}