onPollingFrames property

set onPollingFrames (void handler(List<PollingFrame> frames)?)

Frames from the reader's polling loop, while observe mode is on.

Delivered in batches -- one call can carry a whole loop -- and only for frames that match a filter registered with registerPollingLoopFilter or registerPollingLoopPatternFilter.

Implementation

set onPollingFrames(void Function(List<PollingFrame> frames)? handler) {
  NfcCallbacks.instance.pollingFramesHandler = handler == null
      ? null
      : (frames) => handler([for (final frame in frames) PollingFrame._(frame)]);
}