encoding property Null safety
The encoding used by this source. Mapbox Terrain RGB is used by default
Implementation
Future<Encoding?> get encoding async {
return _style?.getStyleSourceProperty(id, "encoding").then((value) {
if (value.value != '<null>') {
return Encoding.values.firstWhere((e) =>
e.toString().split('.').last.toLowerCase().contains(value.value));
} else {
return null;
}
});
}