fromAssetMap static method

Future<NodeGraph<Map<String, dynamic>>> fromAssetMap(
  1. String assetPath
)

Convenience method to load graph with Map data from asset file

Implementation

static Future<NodeGraph<Map<String, dynamic>>> fromAssetMap(
  String assetPath,
) async {
  final String jsonString = await rootBundle.loadString(assetPath);
  return fromJsonStringMap(jsonString);
}