InferenceRule constructor

const InferenceRule({
  1. required String id,
  2. required String name,
  3. required List<String> conditions,
  4. required String conclusion,
  5. double weight = 1.0,
})

Implementation

const InferenceRule({
  required this.id,
  required this.name,
  required this.conditions,
  required this.conclusion,
  this.weight = 1.0,
}) : assert(weight >= 0.0 && weight <= 1.0);