allFields abstract method

Future<void> allFields(
  1. Future onField(
    1. String fieldName,
    2. dynamic value
    )
)

Provides a mechanism for fetching all values of all fields in this entity. The future returned will complete when all fields have been fetched and successfully passed to onField. Note that for large numbers of fields or data, several network requests may be made to produce all the data needed. The implementation may, at its discretion fetch the data via individual requests or over a persistent stream like web sockets.

Implementation

Future<void> allFields(
  Future<dynamic> Function(String fieldName, dynamic value) onField,
);