InteractiveBuilder typedef

InteractiveBuilder = Widget Function(BuildContext context, Widget builder(), SvgRegionsDetails details)

Builder used to wrap or decorate a parsed SVG region.

  • context: the build context.
  • builder: the Widget that renders the SVG fragment for the region (already configured with fit/alignment).
  • details: metadata about the region (selector and computed bounds). Note that details.bounds may be null on the initial build because bounds are computed after layout; when bounds become available, use shouldRebuildWhenBoundsCalculated on the parent to request a rebuild so the builder receives updated details.

Implementation

typedef InteractiveBuilder = Widget Function(
  BuildContext context,
  Widget Function() builder,
  SvgRegionsDetails details,
);