MREAttachmentsConfig class final Attachments

How a field keeps and shows the images it accepts.

A behaviour that returns one from MREImagePasteBehavior.attachments gets thumbnails inside the field. One that returns null keeps no images.

Annotations

Constructors

MREAttachmentsConfig({MREAttachmentsController? controller, int maxImages = mreDefaultMaxImages, bool showCounter = false, bool allowReplace = true, ValueChanged<List<MREPastedImage>>? onChanged, MREAttachmentsBuilder? builder})
Creates a configuration.
const

Properties

allowReplace → bool
Whether each thumbnail has a replace button.
final
builder → MREAttachmentsBuilder?
Optional presentation. Receives guarded edit actions and the controller. The result appears inside the field above its text input.
final
controller → MREAttachmentsController?
Holds the images. The field keeps its own when null.
final
hashCode → int
The hash code for this object.
no setterinherited
maxImages → int
The most images the field holds.
final
onChanged → ValueChanged<List<MREPastedImage>>?
Called with a snapshot of the images after one is added, removed or replaced.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showCounter → bool
Shows the current image count and limit inside the field.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited