SaveReason.custom constructor
const
SaveReason.custom(
- String value
Creates a save reason with a custom value.
Implementation
const SaveReason.custom(this.value)
: assert(value.length > 0, 'SaveReason cannot be empty');