Meta class

Metadata returned by Paperclip. May contain subtrees small and original, as well as various other top-level properties.

More importantly, there may be another top-level focus Hash object on images as of 2.3.0, with coordinates can be used for smart thumbnail cropping

https://docs.joinmastodon.org/entities/MediaAttachment/#meta

Annotations
  • @JsonSerializable()

Constructors

Meta({String? length, double? duration, int? fps, String? size, int? width, int? height, double? aspect, Focus? focus, String? audioEncode, String? audioBitrate, String? audioChannels, Details? original, Details? small})
Meta.fromJson(Map<String, dynamic> json)
factory

Properties

aspect double?
getter/setter pair
audioBitrate String?
getter/setter pair
audioChannels String?
getter/setter pair
audioEncode String?
getter/setter pair
duration double?
getter/setter pair
focus Focus?
getter/setter pair
fps int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height int?
getter/setter pair
length String?
getter/setter pair
original Details?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size String?
getter/setter pair
small Details?
getter/setter pair
width int?
getter/setter pair

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