Skip to content

All generated classes as Labels #50

Open
@stepanzalis

Description

@stepanzalis

With version 5.1, is it possible to access all generated classes with corresponding strings? With older version, I have extension like

extension BuildContextExtension on BuildContext {

  // Get translated label by calling [context.translate().foo.barTitle]
  AppLocalizations_Labels translate() {
    return AppLocalizations.of(this);
  }
}

It would be awesome to have something similar here 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions