Rule class

Object that stores information about the rule (description, type, etc).

Constructors

Rule({required String id, required String description, required MistakeType issueType, required Category category, required bool isPremium})
Creates a new instance of the Rule class.
Rule.fromJson(Map<String, dynamic> json)
Parse Rule from json.
factory

Properties

category Category
The category of the rule.
final
description String
The description in the set language.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Id (i.e.UPPERCASE_SENTENCE_START).
final
isPremium bool
The subscription status of the rule.
final
issueType MistakeType
The type of the error (spelling, typographical, etc).
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
toString() String
A string representation of this object.
inherited

Operators

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