asFlatStructure method

Map<Object?, Object?> asFlatStructure()

Serializes the bundle to a flat structure that is used by the restoration framework. See RestorationMixin

Implementation

Map<Object?, Object?> asFlatStructure() => _internalMap.map((key, value) {
      if (value is Bundle) {
        return MapEntry<Object?, Object?>(key, value.asFlatStructure());
      } else {
        return MapEntry<Object?, Object?>(key, value);
      }
    });