2000calories / flutter_easy_rich_text

The EasyRichText widget provides an easy way to use RichText.
https://pub.dev/packages/easy_rich_text
MIT License
80 stars 33 forks source link

Make EasyRichTextPattern constructor const #57

Closed guenth39 closed 1 month ago

guenth39 commented 7 months ago
// BEFOR
 EasyRichTextPattern(
      {required this.targetString,
      this.stringBeforeTarget = '',
      this.stringAfterTarget = '',
      this.matchWordBoundaries = true,
      this.matchLeftWordBoundary = true,
      this.matchRightWordBoundary = true,
      this.superScript = false,
      this.subScript = false,
      this.style,
      this.urlType,
      this.recognizer,
      this.hasSpecialCharacters = false,
      this.matchOption = 'all',
      this.matchBuilder,
      this.prefixInlineSpan,
      this.suffixInlineSpan});
// AFTER
 const EasyRichTextPattern(
      {required this.targetString,
      this.stringBeforeTarget = '',
      this.stringAfterTarget = '',
      this.matchWordBoundaries = true,
      this.matchLeftWordBoundary = true,
      this.matchRightWordBoundary = true,
      this.superScript = false,
      this.subScript = false,
      this.style,
      this.urlType,
      this.recognizer,
      this.hasSpecialCharacters = false,
      this.matchOption = 'all',
      this.matchBuilder,
      this.prefixInlineSpan,
      this.suffixInlineSpan});
2000calories commented 1 month ago

Completed in v2.2.0