Context constructor

Context({
  1. Iterable<ContextRule>? rules,
})

Implementation

factory Context({
  $core.Iterable<ContextRule>? rules,
}) {
  final _result = create();
  if (rules != null) {
    _result.rules.addAll(rules);
  }
  return _result;
}