jsonSortedEncode function Null safety

String jsonSortedEncode(
  1. Object? object,
  2. {Object? toEncodable(
    1. Object? nonEncodable
    )?}
)

Converts object to a JSON string with its keys sorted.

For more info, see jsonEncode.

Implementation

String jsonSortedEncode(Object? object,
        {Object? Function(Object? nonEncodable)? toEncodable}) =>
    jsonEncode(sortedCopy(object), toEncodable: toEncodable);