Rule constructor

const Rule({
  1. required String id,
  2. required String text,
})

Implementation

const factory Rule({
  /// An identifier for the rule.
  required String id,

  /// The rule to be followed.
  required String text,
}) = _Rule;