MediaItem class final

Constructors

MediaItem.fromFile(File file, String name, {bool? spoiler, String? proxyUrl, int? height, int? width, String? contentType, String? description})
factory
MediaItem.fromNetwork(String url, {bool? spoiler, String? proxyUrl, int? height, int? width, String? contentType, String? description})

Properties

bytes Uint8List?
getter/setter pair
contentType String?
final
description String?
final
hashCode int
The hash code for this object.
no setterinherited
height int?
final
proxyUrl String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spoiler bool?
getter/setter pair
url String
final
width int?
final

Methods

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

Operators

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