registerCustomCommands static method

void registerCustomCommands(
  1. Map<String, DeviceCommand Function(dynamic, String, DateTime)> builders
)

Allows an application to register it's own custom commands. This is additive so it may be called multiple times to add multiple sets of custom commands.

Implementation

static void registerCustomCommands(
  Map<String, DeviceCommand Function(dynamic, String, DateTime)> builders,
) =>
    _builders.addAll(builders);