performClusterAction<T> method

  1. @override
Future<T?> performClusterAction<T>(
  1. String action,
  2. int deviceId,
  3. int endpoint, [
  4. List args = const [],
])
override

Generic dispatcher for cluster reads/commands. See MatterAction for the supported actions.

Implementation

@override
Future<T?> performClusterAction<T>(
  String action,
  int deviceId,
  int endpoint, [
  List<dynamic> args = const [],
]) async {
  return await methodChannel.invokeMethod<T>('performClusterAction', [
    action,
    deviceId,
    endpoint,
    args,
  ]);
}