to_string_pretty static method
Implementation
static String to_string_pretty({required dynamic data, int space = 4}) {
if (data is Map || data is List) {
return JsonEncoder.withIndent(" " * space).convert(data);
}
return data.toString();
}