samInject function

Widget samInject (
  1. SamModel sm
)

Used to inject a SamModel instance into the widget tree.

It creates a SamInject instance that manages the lifecycle events of the widget tree.

Implementation

Widget samInject(SamModel sm) {
  return SamInject(sm);
}