Account region settings

This commit is contained in:
2025-09-07 16:00:30 +08:00
parent 3cafce00a2
commit cd2a507b7f
8 changed files with 92 additions and 38 deletions

View File

@@ -376,10 +376,7 @@ return $default(_that);case _:
final _that = this;
switch (_that) {
case _GeoIpLocation():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
return $default(_that);}
}
/// A variant of `map` that fallback to returning `null`.
///
@@ -438,10 +435,7 @@ return $default(_that.latitude,_that.longitude,_that.countryCode,_that.country,_
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( double latitude, double longitude, String countryCode, String country, String city) $default,) {final _that = this;
switch (_that) {
case _GeoIpLocation():
return $default(_that.latitude,_that.longitude,_that.countryCode,_that.country,_that.city);case _:
throw StateError('Unexpected subclass');
}
return $default(_that.latitude,_that.longitude,_that.countryCode,_that.country,_that.city);}
}
/// A variant of `when` that fallback to returning `null`
///