FdcDataSetStateChanged typedef

FdcDataSetStateChanged = void Function(FdcDataSet dataSet, FdcDataSetState previousState, FdcDataSetState currentState)

Called synchronously whenever the dataset state value changes.

previousState is the state being left and currentState is already the dataset's active state when the callback runs. Because this callback runs inside lifecycle transitions, avoid starting re-entrant lifecycle operations.

Implementation

typedef FdcDataSetStateChanged =
    void Function(
      FdcDataSet dataSet,
      FdcDataSetState previousState,
      FdcDataSetState currentState,
    );