registerWithData method
Register a data-aware toast style with the given id.
The factory receives a Map<String, dynamic> data map at call time.
Implementation
void registerWithData(String id, ToastStyleDataFactory factory) {
_styles[id] = factory;
}