I18n class

The I18n class provides internationalization settings for the image editor and its components. It includes translations and messages for various parts of the editor.

Usage:

I18n i18n = I18n(
  various: I18nVarious(
    // Define various translations...
  ),
  paintEditor: I18nPaintingEditor(
    // Define painting editor translations...
  ),
  textEditor: I18nTextEditor(
    // Define text editor translations...
  ),
  cropRotateEditor: I18nCropRotateEditor(
    // Define crop and rotate editor translations...
  ),
  filterEditor: I18nFilterEditor(
    // Define filter editor translations...
  ),
  emojiEditor: I18nEmojiEditor(
    // Define emoji editor translations...
  ),
  cancel: 'Cancel',
  undo: 'Undo',
  redo: 'Redo',
  done: 'Done',
  doneLoadingMsg: 'Changes are being applied',
);

Properties:

  • various: Translations and messages for various parts of the editor.

  • paintEditor: Translations and messages specific to the painting editor.

  • textEditor: Translations and messages specific to the text editor.

  • cropRotateEditor: Translations and messages specific to the crop and rotate editor.

  • filterEditor: Translations and messages specific to the filter editor.

  • emojiEditor: Translations and messages specific to the emoji editor.

  • cancel: The text for the "Cancel" button.

  • undo: The text for the "Undo" action.

  • redo: The text for the "Redo" action.

  • done: The text for the "Done" action.

  • remove: The text for the "Remove" action.

  • doneLoadingMsg: The message displayed when changes are being applied.

Example Usage:

I18n i18n = I18n(
  various: I18nVarious(
    // Define various translations...
  ),
  paintEditor: I18nPaintingEditor(
    // Define painting editor translations...
  ),
  // Access other translations and messages...
);

String cancelText = i18n.cancel;
String undoText = i18n.undo;
// Access other translations and messages...

Constructors

I18n({I18nPaintingEditor paintEditor = const I18nPaintingEditor(), I18nTextEditor textEditor = const I18nTextEditor(), I18nCropRotateEditor cropRotateEditor = const I18nCropRotateEditor(), I18nFilterEditor filterEditor = const I18nFilterEditor(), I18nEmojiEditor emojiEditor = const I18nEmojiEditor(), I18nStickerEditor stickerEditor = const I18nStickerEditor(), I18nVarious various = const I18nVarious(), String cancel = 'Cancel', String undo = 'Undo', String redo = 'Redo', String done = 'Done', String remove = 'Remove', String doneLoadingMsg = 'Changes are being applied'})
Creates an instance of I18n with customizable internationalization settings.
const

Properties

cancel String
Text for the "Cancel" action.
final
cropRotateEditor I18nCropRotateEditor
Translations and messages specific to the crop and rotate editor.
final
done String
Text for the "Done" action.
final
doneLoadingMsg String
Message displayed while changes are being applied.
final
emojiEditor I18nEmojiEditor
Translations and messages specific to the emoji editor.
final
filterEditor I18nFilterEditor
Translations and messages specific to the filter editor.
final
hashCode int
The hash code for this object.
no setterinherited
paintEditor I18nPaintingEditor
Translations and messages specific to the painting editor.
final
redo String
Text for the "Redo" action.
final
remove String
Text for the "Remove" action.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stickerEditor I18nStickerEditor
Translations and messages specific to the sticker editor.
final
textEditor I18nTextEditor
Translations and messages specific to the text editor.
final
undo String
Text for the "Undo" action.
final
various I18nVarious
Translations and messages for various parts of the editor.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited