CollectionMedia class
Constructors
-
CollectionMedia({required int? id, required String? type, required int? width, required int? height, required String? url, required String? photographer, required String? photographerUrl, required int? photographerId, required String? avgColor, required PhotoSrc? src, required bool liked, required String? alt, required int? duration, required String? image, required User? user, required List<VideoFiles>? videoFiles, required List<VideoPictures>? videoPictures})
-
-
CollectionMedia.fromJson(Map<String, dynamic> json)
-
CollectionMedia.fromJson Mapping data to CollectionMedia
factory
Properties
-
alt
↔ String?
-
Text description of the photo for use in the alt attribute.
getter/setter pair
-
avgColor
↔ String?
-
The average color of the photo. Useful for a placeholder while the image loads.
getter/setter pair
-
duration
↔ int?
-
The duration of the video in seconds.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
↔ int?
-
The real height of the video in pixels
getter/setter pair
-
id
↔ int?
-
getter/setter pair
-
image
↔ String?
-
URL to a screenshot of the video.
getter/setter pair
-
liked
↔ bool
-
Photo like status true or false
getter/setter pair
-
photographer
↔ String?
-
The name of the photographer who took the photo.
getter/setter pair
-
photographerId
↔ int?
-
The id of the photographer.
getter/setter pair
-
photographerUrl
↔ String?
-
The URL of the photographer's Pexels profile.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
src
↔ PhotoSrc?
-
An assortment of different image sizes that can be used to display this PhotoSrc.
getter/setter pair
-
type
↔ String?
-
getter/setter pair
-
url
↔ String?
-
The Pexels URL where the video is located.
getter/setter pair
-
user
↔ User?
-
The videographer who shot the video.
getter/setter pair
-
videoFiles
↔ List<VideoFiles>?
-
An array of different sized versions of the video.
getter/setter pair
-
videoPictures
↔ List<VideoPictures>?
-
An array of preview pictures of the video.
getter/setter pair
-
width
↔ int?
-
The real width of the video in pixels.
getter/setter pair
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited