toMap abstract method

Map<Object, Map<String, Object>> toMap()

The representation of the event in a form, acceptable by a pure dart library, that cannot depend on Flutter.

The method enables code like:

void myDartMethod(Map<Object, Map<String, Object>> event) {}
FlutterMemoryAllocations.instance
  .addListener((ObjectEvent event) => myDartMethod(event.toMap()));

Implementation

Map<Object, Map<String, Object>> toMap();