use static method

void use(
  1. void Function()? handler()
)

The use method takes the "init" function as an argument. The "init" function can return a function that will be used as "dispose".

Implementation

static void use(void Function()? Function() handler) {
  VComponent.run((VComponent vComponent) {
    return useWithKey(_key, handler);
  });
}