effect abstract method

void effect(
  1. void fn()
)

Implementation

void effect(void Function() fn);