fix(ui_kit): remove null check operator in RichTextBuilder component

This commit is contained in:
2023-02-21 13:23:51 +01:00
parent 702164082a
commit 6537945946
2 changed files with 3 additions and 3 deletions
@@ -23,7 +23,7 @@ class RichTextStyleParameter {
this.styleName,
);
final TextStyle defaultStyle;
final TextStyle? defaultStyle;
final Map<String, TextStyle> definedStyle;
final String? styleName;
@@ -31,7 +31,7 @@ class RichTextStyleParameter {
if (definedStyle.containsKey(styleName)) {
return definedStyle[styleName]!;
}
return defaultStyle;
return defaultStyle ?? const TextStyle();
}
RichTextStyleParameter copyWith({