dye function Null safety

String dye(
  1. dynamic x
)

Implementation

String dye(dynamic x) => x is String ? '$GREEN$x$RESET'
	: x is int || x is double || x is bool ? '$BLUE$x$RESET'
	: x is ObjectId ? '$MAGENTA${x.toHexString()}$RESET'
	: '$MAGENTA$x$RESET';