format static method
Implementation
static String format(
String type, Object value, String? format, String? locale) {
type = type.toLowerCase();
final formatter = all.firstWhere(
(x) => x.type.any((t) => t == type),
orElse: () => const StringFormatter(),
);
return formatter.format(value, format, locale);
}