Rating class Null safety

Annotations

Constructors

Rating(double rating, int votes, Map<String, int> distribution)
Rating.fromJson(Map<String, dynamic> json)
factory

Properties

distribution Map<String, int>
final
hashCode int
The hash code for this object.
read-only, inherited
rating double
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
votes int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJsonModel(Map<String, dynamic> json) Rating