localize method

CountryCode localize(
  1. BuildContext context
)

Implementation

CountryCode localize(BuildContext context) {
  return this
    ..name =
        CountryLocalizations.of(context)?.translate(this.code) ?? this.name;
}