Attachment constructor

Attachment(
  1. String name
)

Implementation

Attachment(this.name) {
  if (name.isEmpty) throw ArgumentError('name cannot be empty.');
}