diff --git a/lib/features/composer/presentation/model/rich_text_style_type.dart b/lib/features/composer/presentation/model/rich_text_style_type.dart new file mode 100644 index 000000000..694ee210e --- /dev/null +++ b/lib/features/composer/presentation/model/rich_text_style_type.dart @@ -0,0 +1,34 @@ + +import 'package:core/presentation/resources/image_paths.dart'; + +enum RichTextStyleType { + bold, + italic, + underline; + + String get commandAction { + switch (this) { + case bold: + return 'bold'; + case italic: + return 'italic'; + case underline: + return 'underline'; + default: + return ''; + } + } + + String getIcon(ImagePaths imagePaths) { + switch (this) { + case bold: + return imagePaths.icStyleBold; + case italic: + return imagePaths.icStyleItalic; + case underline: + return imagePaths.icStyleUnderline; + default: + return ''; + } + } +} \ No newline at end of file