toMap static method

Map<String, dynamic> toMap()

Returns the top-level import map as a Dart Map with an 'imports' key.

Implementation

static Map<String, dynamic> toMap() => {
      'imports': {for (final e in _deps.entries) e.key: e.value.url},
    };