Info constructor

const Info({
  1. required String id,
  2. required DateTime date,
  3. int views = 0,
  4. required String name,
  5. required String userId,
  6. String? description,
  7. int likes = 0,
  8. required ShaderPrivacy privacy,
  9. int flags = 0,
  10. List<String> tags = const <String>[],
  11. bool hasLiked = false,
})

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});