ModelLocale.fromCode constructor

const ModelLocale.fromCode(
  1. String language, [
  2. String? country
])

Define a model Locale that stores the locale.

The base value is given as value. If not given, it is set as en_US.

ロケールを保存するLocaleをモデルとして定義します。

ベースの値をvalueとして与えます。与えられなかった場合en_USとしてセットされます。

Implementation

const factory ModelLocale.fromCode(
  String language, [
  String? country,
]) = _ModelLocaleWithCode;