forEachField method

void forEachField(
  1. void callback(
    1. String? fieldName,
    2. int fieldPosition,
    3. String? value
    )
)

Receives an iterator function and invokes it once per each field in the Subscription.

Note that the iterator is executed before this method returns.

  • callback iterator Function instance that will be called once per each field in the Subscription.

Implementation

void forEachField(void Function(String? fieldName, int fieldPosition, String? value) callback) {
  _forEachField(allowInterop(callback));
}