getBorderColor function

Color getBorderColor({
  1. EasyThemeType? type,
  2. bool? ghost,
  3. Color? color,
})

Implementation

Color getBorderColor({
  EasyThemeType? type,
  bool? ghost,
  Color? color,
}) {
  Color borderColor = color ?? iBorderColor;
  if (type == null) return borderColor;
  switch (type) {
    case EasyThemeType.primary:
      borderColor = iPrimary;
      break;
    case EasyThemeType.info:
      borderColor = iInfo;
      break;
    case EasyThemeType.success:
      borderColor = iSuccess;
      break;
    case EasyThemeType.warn:
      borderColor = iWarn;
      break;
    case EasyThemeType.error:
      borderColor = iError;
      break;
  }
  return borderColor;
}