stringify property

bool get stringify

Global stringify setting for all Equatable instances.

If stringify is overridden for a particular Equatable instance, then the local stringify value takes precedence over EquatableConfig.stringify.

This value defaults to true in debug mode and false in release mode.

Implementation

static bool get stringify {
  if (_stringify == null) {
    // ignore: prefer_asserts_with_message
    assert(() {
      _stringify = true;
      return true;
    }());
  }
  return _stringify ??= false;
}
set stringify (bool value)

Global stringify setting for all Equatable instances.

If stringify is overridden for a particular Equatable instance, then the local stringify value takes precedence over EquatableConfig.stringify.

This value defaults to true in debug mode and false in release mode.

Implementation

static set stringify(bool value) => _stringify = value;