Collation constructor

Collation({
  1. String? locale,
  2. bool? caseLevel,
  3. String? caseFirst,
  4. int? strength,
  5. bool? numericOrdering,
  6. String? alternate,
  7. String? maxVariable,
  8. bool? normalization,
  9. bool? backwards,
})

Implementation

factory Collation({
  $core.String? locale,
  $core.bool? caseLevel,
  $core.String? caseFirst,
  $core.int? strength,
  $core.bool? numericOrdering,
  $core.String? alternate,
  $core.String? maxVariable,
  $core.bool? normalization,
  $core.bool? backwards,
}) {
  final _result = create();
  if (locale != null) {
    _result.locale = locale;
  }
  if (caseLevel != null) {
    _result.caseLevel = caseLevel;
  }
  if (caseFirst != null) {
    _result.caseFirst = caseFirst;
  }
  if (strength != null) {
    _result.strength = strength;
  }
  if (numericOrdering != null) {
    _result.numericOrdering = numericOrdering;
  }
  if (alternate != null) {
    _result.alternate = alternate;
  }
  if (maxVariable != null) {
    _result.maxVariable = maxVariable;
  }
  if (normalization != null) {
    _result.normalization = normalization;
  }
  if (backwards != null) {
    _result.backwards = backwards;
  }
  return _result;
}