registerCallback static method
Register a callback to manage result of AzureB2C asynchronous operations.
The source
argument is a B2COperationSource enum and set which result
the callback is interested in. The callback
is an AzureB2CCallback.
See also:
Note:
- consider to maintain a reference to the callback itself in case in your scenario it is necessary to unregister it.
Implementation
static void registerCallback(
B2COperationSource source, AzureB2CCallback callback) {
_callbacks[source]!.add(callback);
}