StateHistoryConfigs constructor

const StateHistoryConfigs({
  1. int stateHistoryLimit = 1000,
  2. ImportStateHistory? initStateHistory,
})

Creates an instance of StateHistoryConfigs.

  • The stateHistoryLimit is the limit how many entries the history can contain.
  • The initStateHistory holds the initial state history of the Image Editor.

Implementation

const StateHistoryConfigs({
  this.stateHistoryLimit = 1000,
  this.initStateHistory,
}) : assert(stateHistoryLimit > 0, 'stateHistoryLimit must be positive');