isMapStyleValid method
Check whether a given mapstyle is valid for the venue
Implementation
bool isMapStyleValid(MPMapStyle mapstyle) {
if (_mapStyles == null) {
return false;
}
for (var style in _mapStyles ?? []) {
if (style == mapstyle) {
return true;
}
}
return false;
}