NullAwareTypeConverter<D, S extends Object>.wrap constructor

const NullAwareTypeConverter<D, S extends Object>.wrap(
  1. TypeConverter<D, S> inner
)

Wraps an inner type converter that only considers non-nullable values as a type converter that handles null values too.

The returned type converter will use the inner type converter for non- null values. Further, null is mapped to null in both directions (from Dart to SQL and vice-versa).

Implementation

const factory NullAwareTypeConverter.wrap(TypeConverter<D, S> inner) =
    _NullWrappingTypeConverter<D, S>;