remove method

bool remove(
  1. T control
)

Removes the first occurrence of control from the array.

Implementation

bool remove(T control) {
  final current = List<T>.of(fields.value);
  final result = current.remove(control);
  if (result) {
    fields.value = current;
    _arrayDirty.value = true;
  }
  return result;
}