Info constructor
const
Info({})
Builds a Info
- id: The shader id
- date: The publish date of the shader
- views: The shader views
- name: The shader name
- userId: The id of the user that created the shader
- description: The shader description
- likes: The number of likes
- privacy: The shader privacy
- flags: The shader flags
- tags: The shader tags
- hasLiked: If the current logged user liked the shader
Implementation
const Info(
{required this.id,
required this.date,
this.views = 0,
required this.name,
required this.userId,
this.description,
this.likes = 0,
required this.privacy,
this.flags = 0,
this.tags = const <String>[],
this.hasLiked = false});