value property

  1. @override
List<Attachment> value
inherited

The current value stored in this notifier.

When the value is replaced with something that is not equal to the old value as evaluated by the equality operator ==, this class notifies its listeners.

Implementation

@override
T get value => _value;
  1. @override
void value=(List<Attachment> newValue)
override

Implementation

@override
set value(List<Attachment> newValue) {
  if (newValue.length > maxAttachmentCount) {
    throw ArgumentError(
      'The maximum number of attachments is $maxAttachmentCount.',
    );
  }
  super.value = newValue;
}