getButtons method

  1. @override
String getButtons({
  1. bool listStyles = false,
})
override

Gives the string for the button names

Implementation

@override
String getButtons({bool listStyles = false}) {
  if (buttons.isEmpty) {
    return "['fullscreen', 'codeview', 'undo', 'redo', 'help']";
  } else {
    String list = "[";
    for (MiscButtons e in buttons) {
      list = list + "'${describeEnum(e)}'" + (buttons.last != e ? ", " : "");
    }
    return list + "]";
  }
}