impression method Null safety

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

    Notifies that an in-app area within an app has been clicked on by the user.

    • Parameter trackingLink tracking link uri
    • Parameter onSuccess Callback to be invoked when tracking link is successfully handled.
    • Parameter onFailure Callback to be invoked when any error occurs.
    • Return true if all of the following conditions are met below, false otherwise.
    • If the SDK is initialized and enabled.
    • If tracking link is successfully handled.

    Implementation

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