toPure method

void toPure({
  1. String? name,
})

Implementation

void toPure({String? name}) {
  final event = name == null
      ? FlFormToPure()
      : FlFormTextEditingControllerToPure(name: name);

  if (name != null) {
    _controller.add(event);
    notifier.changeToPure(name);

    return;
  }

  _controller.add(event);
  notifier.changeAllToPure();
}