printWithColor method
Implementation
void printWithColor({PrintType? status}) {
if (status == null) {
print(this);
} else if (status == PrintType.success) {
print("${AppConstant.green.key}$this${AppConstant.reset.key}");
} else if (status == PrintType.warning) {
print("${AppConstant.yellow.key}$this${AppConstant.reset.key}");
} else {
print("${AppConstant.red.key}$this${AppConstant.reset.key}");
}
}