copyWith method

Locale copyWith({
  1. String? language,
  2. String? region,
})

Implementation

Locale copyWith({
  String? language,
  String? region
}) {
  return Locale(
    language: language ?? this.language,
    region: region ?? this.region
  );
}