fetchDeviceUUID method Null safety

Future<bool> fetchDeviceUUID(
  1. {required void onSuccess(
    1. String
    ),
  2. void onFailure(
    1. String
    )?}
)

Fetch deviceUUID of SDK.

  • Parameter onSuccess Callback to be invoked when deviceUUID is successfully handled.
  • Parameter onFailure Callback to be invoked when any error occurs.

Implementation

static Future<bool> fetchDeviceUUID({
  required void Function(String) onSuccess,
  void Function(String)? onFailure,
}) {
  Logger.called('fetchDeviceUUID');
  return _fetch.fetchDeviceUUID(onSuccess: onSuccess, onFailure: onFailure);
}