Info class
Contains the shader meta information
- Annotations
-
- @JsonSerializable()
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
final
- description → String?
-
The shader description
final
- flags → int
-
The shader flags
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasLiked → bool
-
If the current logged user liked the shader
final
- id → String
-
The shader id
final
- likes → int
-
The number of likes
final
- name → String
-
The shader name
final
- privacy → ShaderPrivacy
-
The shader privacy
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited -
The shader tags
final
- userId → String
-
The name of the user that created the shader
final
- views → int
-
The shader views
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 nonexistent 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