getColorButton static method

Color getColorButton({
  1. required String? color,
  2. bool? isNull,
})

Implementation

static Color getColorButton({required String? color, bool? isNull}) {
  if (color != null && color.length > 0) {
    return HexColor(color);
  }
  final appConfig = prefsHelper.getApplicationConfig();
  return HexColor(appConfig?.primaryColor);
}