HtmlEditor field required

Viewed 25

is there any way to make HtmlEditor field required in Flutter? Maybe with controller or any other custom method?

                  HtmlEditor(
                    controller: htmlController,
                    htmlEditorOptions: HtmlEditorOptions(
                      hint: 'Description...',
                    ),
                    htmlToolbarOptions: HtmlToolbarOptions(
                      toolbarPosition: ToolbarPosition.aboveEditor,
                      toolbarType: ToolbarType.nativeGrid,
                    ),
                    otherOptions: const OtherOptions(height: 550),
                  )
0 Answers
Related