String? toArgbString(Color? color) { return color != null ? '#${color.value.toRadixString(16).padLeft(8, '0')}' : null; }