stringify static method

String stringify(
  1. dynamic object, {
  2. dynamic space = 0,
  3. Object? toEncodable(
    1. Object? nonEncodable
    )?,
})

Convert the object to json5 string.

Currently, only objects that inherit from Map or List are supported.

The altenative is json5Encode(string)

Implementation

static String stringify(
  dynamic object, {
  space = 0,
  Object? Function(Object? nonEncodable)? toEncodable,
}) {
  return render.stringify(object, null, space, toEncodable ?? _toEncodable);
}