buildMaterialWidgetLibrary function

LocalWidgetLibrary buildMaterialWidgetLibrary()

Builds a LocalWidgetLibrary for the restage.material namespace.

The map of LocalWidgetBuilders is generated from the registry by codegen — one entry per widget in lib/registry.dart. This wrapper exists so the SDK runtime depends only on a stable API surface, not directly on the generated file.

Implementation

LocalWidgetLibrary buildMaterialWidgetLibrary() =>
    LocalWidgetLibrary(kMaterialLibraryFactories);