localized method

String localized(
  1. BuildContext context
)

An extension function for extracting the value out of a JSON file.

Requires context as a parameter.

Implementation

String localized(BuildContext context) =>
    LocalizationService.of(context)!.translate(this);