Locale constructor

Locale({
  1. String? id,
  2. String? name,
  3. bool? appStoreSupported,
  4. bool? playStoreSupported,
  5. bool? flutterSupported,
  6. bool? sourceTranslateSupported,
  7. bool? targetTranslateSupported,
})

Implementation

factory Locale({
  $core.String? id,
  $core.String? name,
  $core.bool? appStoreSupported,
  $core.bool? playStoreSupported,
  $core.bool? flutterSupported,
  $core.bool? sourceTranslateSupported,
  $core.bool? targetTranslateSupported,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (name != null) result.name = name;
  if (appStoreSupported != null) result.appStoreSupported = appStoreSupported;
  if (playStoreSupported != null)
    result.playStoreSupported = playStoreSupported;
  if (flutterSupported != null) result.flutterSupported = flutterSupported;
  if (sourceTranslateSupported != null)
    result.sourceTranslateSupported = sourceTranslateSupported;
  if (targetTranslateSupported != null)
    result.targetTranslateSupported = targetTranslateSupported;
  return result;
}