getBackingMap function

Map getBackingMap(
  1. Map map
)

Returns the underlying map object of either UiProps or UiState.

Used to take a typed factory object and get the underlying backing map.

Implementation

Map getBackingMap(Map map) {
  if (map is JsBackedMap) return map;
  if (map is component_base.UiProps) return getBackingMap(map.props);
  if (map is component_base.UiState) return getBackingMap(map.state);
  return map;
}