Info class Null safety

Contains the shader meta information

Inheritance
Annotations

Constructors

Info({required String id, required DateTime date, int views = 0, required String name, required String userId, String? description, int likes = 0, required ShaderPrivacy privacy, int flags = 0, List<String> tags = const <String>[], bool hasLiked = false})
Builds a Info [...]
const
Info.fromJson(Map<String, dynamic> json)
Creates a Info from json map
factory

Properties

date DateTime
The publish date of the shader
@JsonKey(name: 'date'), @StringEpochInSecondsConverter(), final
description String?
The shader description
@JsonKey(name: 'description'), final
flags int
The shader flags
@JsonKey(name: 'flags'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
hasLiked bool
If the current logged user liked the shader
@JsonKey(name: 'hasliked'), @IntToBoolConverter(), final
id String
The shader id
@JsonKey(name: 'id'), final
likes int
The number of likes
@JsonKey(name: 'likes'), final
name String
The shader name
@JsonKey(name: 'name'), final
privacy ShaderPrivacy
The shader privacy
@JsonKey(name: 'published'), final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited
tags List<String>
The shader tags
@JsonKey(name: 'tags'), final
userId String
The name of the user that created the shader
@JsonKey(name: 'username'), final
views int
The shader views
@JsonKey(name: 'viewed'), final

Methods

copyWith({String? id, DateTime? date, int? views, String? name, String? userId, String? description, int? likes, ShaderPrivacy? privacy, int? flags, List<String>? tags, bool? hasLiked}) Info
Builds a copy of a Info [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Creates a json map from a Info
toString() String
A string representation of this object. [...]
inherited

Operators

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