SnapCategory class

Describes an category this snap is part of.

Annotations
  • @immutable
  • @JsonSerializable()

Constructors

SnapCategory({required String name, bool featured = false})
const
SnapCategory.fromJson(Map<String, dynamic> json)
factory

Properties

True if this snap is featured in this category.
final
hashCode int
The hash code for this object.
no setteroverride
name String
Name of the category this snap is in.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override