url property

Future<String?> get url

URL that points to an image. If the URL is not specified, the image is expected to be loaded directly during runtime.

Implementation

Future<String?> get url async {
  final localStyle = style;
  if (localStyle == null) return null;
  final raw = (await localStyle.getStyleSourceProperty(id, "url")).value;
  if (raw == null) return null;
  return raw as String;
}