getColorUtilsByVariant static method
Implementation
static NextAlertColorUtils getColorUtilsByVariant(NextVariant variant) {
switch (variant) {
case NextVariant.success:
return NextAlertColorUtils.success;
case NextVariant.primary:
return NextAlertColorUtils.primary;
case NextVariant.secondary:
return NextAlertColorUtils.secondary;
case NextVariant.warning:
return NextAlertColorUtils.warning;
case NextVariant.info:
return NextAlertColorUtils.info;
case NextVariant.light:
return NextAlertColorUtils.light;
case NextVariant.danger:
return NextAlertColorUtils.danger;
case NextVariant.dark:
return NextAlertColorUtils.dark;
default:
return NextAlertColorUtils.success;
}
}