LocalAttachment class
A picked image or screenshot before upload. Give bytes; the queue keeps them in a file until delivered.
Constructors
- LocalAttachment({Uint8List? bytes, String? file, String type = 'image/jpeg', int? width, int? height, String? name, Attachment? remote})
-
LocalAttachment.fromJson(Map<
String, Object?> j) -
factory
Properties
- bytes → Uint8List?
-
final
- file ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
final
- name → String?
-
final
- remote ↔ Attachment?
-
The uploaded form, kept so a retry never uploads twice.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
final
- width → int?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited