useMount function

void useMount(
  1. VoidCallback fn
)

Flutter lifecycle hook that calls a function after the component is mounted. Use useLifecycles if you need both a mount and unmount function.

Implementation

void useMount(VoidCallback fn) {
  // ignore: body_might_complete_normally_nullable
  return useEffectOnce(() {
    fn();
  });
}