createDiscoveryAction method

  1. @override
BonsoirAction<BonsoirDiscoveryEvent> createDiscoveryAction(
  1. String type, {
  2. bool printLogs = kDebugMode,
})
override

This method returns an initialized subclass of BonsoirAction holding the eventStreams and other state needed for the implementations.

Implementation

@override
BonsoirAction<BonsoirDiscoveryEvent> createDiscoveryAction(String type,
    {bool printLogs = kDebugMode}) {
  return BonsoirDiscoveryAction(type: type, printLogs: printLogs);
}