getFontDesignSystem_text static method
Implementation
static String getFontDesignSystem_text(LevelDS levelDS , String? custom ) {
//mobile enter custom
if ( custom != null ) return custom;
//default
var d = DSFont.h1;
//choose
if( levelDS == LevelDS.parent ) {
d = DSFont.hparent;
}
if( levelDS == LevelDS.l1 ) {
d = DSFont.h1;
}
if( levelDS == LevelDS.l2 ) {
d = DSFont.h2;
}
if( levelDS == LevelDS.l3 ) {
d = DSFont.h3;
}
if( levelDS == LevelDS.l4 ) {
d = DSFont.h4;
}
return d;
}