Range constructor

Range({
  1. int? from,
  2. int? to,
})

Implementation

factory Range({
  $core.int? from,
  $core.int? to,
}) {
  final result = create();
  if (from != null) result.from = from;
  if (to != null) result.to = to;
  return result;
}