LocalizedText constructor

LocalizedText(
  1. String text,
  2. Locale? locale
)

Creates a new instance.

  • text Text value.
  • locale Locale of text, in most cases contains only language code. If locale is not supported by the platform, null is returned.

Implementation

LocalizedText(this.text, this.locale);