fromInt static method
Constructs an AttachmentState from the corresponding integer value.
Throws ArgumentError if the value does not match any AttachmentState.
Implementation
static AttachmentState fromInt(int value) {
  if (value < 0 || value >= AttachmentState.values.length) {
    throw ArgumentError('Invalid value for AttachmentState: $value');
  }
  return AttachmentState.values[value];
}