refactor: format files with dartFmt

This commit is contained in:
jideguru
2021-06-03 00:42:53 +01:00
parent 75ae842f4b
commit 4097c7c746
7 changed files with 4 additions and 157 deletions

View File

@@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
extension ColorX on Color {
String toHexColorString() {
String hex = value.toRadixString(16).replaceAll('ff', '');
if(hex.isEmpty) hex = '000000';
if (hex.isEmpty) hex = '000000';
return '#$hex';
}
}