onRegister method
Callback method when this package is being registered.
Implementation
@override
void onRegister() {
// register all data types
FromJsonFactory().registerAll([
TextMessageLog(),
TextMessage(),
PhoneLog(DateTime.now(), DateTime.now()),
Calendar(DateTime.now(), DateTime.now()),
]);
// register the default privacy transformers
DataTransformerSchemaRegistry()
.lookup(PrivacySchema.DEFAULT)!
.add(TEXT_MESSAGE, textMessageAnoymizer);
DataTransformerSchemaRegistry()
.lookup(PrivacySchema.DEFAULT)!
.add(TEXT_MESSAGE_LOG, textMessageLogAnoymizer);
DataTransformerSchemaRegistry()
.lookup(PrivacySchema.DEFAULT)!
.add(PHONE_LOG, phoneLogAnoymizer);
DataTransformerSchemaRegistry()
.lookup(PrivacySchema.DEFAULT)!
.add(CALENDAR, calendarAnoymizer);
}