WidgetKitAPI constructor

WidgetKitAPI({
  1. BinaryMessenger? binaryMessenger,
})

Constructor for WidgetKitAPI. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Implementation

WidgetKitAPI({BinaryMessenger? binaryMessenger})
    : _binaryMessenger = binaryMessenger;