localize method

ArisCountryCodeItem localize(
  1. BuildContext context
)

get country name for specific locale

Implementation

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