label static method
Localized label for a block type.
Implementation
static String label(UBlockType t) {
switch (t) {
case UBlockType.paragraph:
return U.s.normalText;
case UBlockType.h1:
return U.s.heading1;
case UBlockType.h2:
return U.s.heading2;
case UBlockType.h3:
return U.s.heading3;
case UBlockType.h4:
return U.s.heading4;
case UBlockType.h5:
return U.s.heading5;
case UBlockType.h6:
return U.s.heading6;
case UBlockType.quote:
return U.s.quote;
case UBlockType.bulleted:
return U.s.bulletedList;
case UBlockType.numbered:
return U.s.numberedList;
case UBlockType.checklist:
return U.s.checklist;
case UBlockType.code:
return U.s.codeBlock;
case UBlockType.table:
return U.s.table;
case UBlockType.image:
return U.s.insertImage;
case UBlockType.divider:
return U.s.divider;
}
}