PrivacySchema class Null safety

A default DatumTransformerSchema for privacy transformers

Inheritance

Constructors

PrivacySchema()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
namespace String
The type of namespace that this package can transform to (see e.g. NameSpace for pre-defined namespaces).
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
transformers Map<String, DatumTransformer>
A map of transformers in this schema, indexed by the data type they can transform.
read-only, inherited

Methods

add(String type, DatumTransformer transformer) → void
Add a transformer to this schema based on its type mapped to its String.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onRegister() → void
Callback method when this schema is being registered.
override
toString() String
A string representation of this object. [...]
inherited
transform(Datum datum) Datum
Transform the datum according to the transformer for its data type.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

DEFAULT → const String
'default-privacy-schema'