getByValue static method
Implementation
static CameraPosition? getByValue(int? i) {
if (i == null) return null;
try {
return CameraPosition.values.firstWhere((x) => x.value == i);
} catch (_) {
return CameraPosition.UNKNOWN;
}
}
static CameraPosition? getByValue(int? i) {
if (i == null) return null;
try {
return CameraPosition.values.firstWhere((x) => x.value == i);
} catch (_) {
return CameraPosition.UNKNOWN;
}
}