attribution property

Future<String?> get attribution

Contains an attribution to be displayed when the map is shown to a user.

Implementation

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