identify method Null safety

Future<void> identify(
  1. LDUser user

Changes the active user context.

When the user context is changed, the SDK will load flag values for the user from a local cache if available, while initiating a connection to retrieve the most current flag values. An event will be queued to be sent to the service containing the public LDUser fields for indexing on the dashboard.


static Future<void> identify(LDUser user) async {
  await _channel.invokeMethod('identify', {'user': user._toCodecValue()});