AddressType.fromRawValue constructor
AddressType.fromRawValue(
- int value
Implementation
factory AddressType.fromRawValue(int value) {
switch (value) {
case 0:
return AddressType.unknown;
case 1:
return AddressType.work;
case 2:
return AddressType.home;
default:
throw ArgumentError.value(value, 'value', 'Invalid raw value.');
}
}