dye method Null safety

String dye(
  1. dynamic x
)

Implementation

static String dye(dynamic x) => x is String ? '\x1b[32m$x\x1b[0m'
	: x is int || x is double || x is bool ? '\x1b[34m$x\x1b[0m'
	: '\x1b[35m$x\x1b[0m';