volatile property

Future<bool?> get volatile

A setting to determine whether a source's tiles are cached locally.

Implementation

Future<bool?> get volatile async {
  return _style?.getStyleSourceProperty(id, "volatile").then((value) {
    if (value.value != '<null>') {
      if (Platform.isIOS) {
        return value.value.toLowerCase() == '1';
      } else {
        return value.value.toLowerCase() == 'true';
      }
    } else {
      return null;
    }
  });
}