init method

void init({
  1. VoidCallback? block,
  2. T? result,
})

Implementation

void init({VoidCallback? block, T? result}) {
  if (_first) {
    _first = false;
    if (result != null) {
      this.result = result;
    }
    block?.call();
  }
}