argbToColor function

Color argbToColor(
  1. String argb
)

argb转成Color

Implementation

Color argbToColor(String argb) {
  if (argb.startsWith('#')) {
    argb = argb.replaceAll('#', '');
  }
  return Color(int.parse(argb, radix: 16));
}