push method

  1. @override
Future<void> push({
  1. Map<String, dynamic>? extra,
})
override

Push the button.

await myButton.push();

For more information, see Button component.

Implementation

@override
Future<void> push({Map<String, dynamic>? extra}) async {
  final request = PushRequest()
    ..name = name
    ..extra = extra?.toStruct() ?? Struct();
  await client.push(request);
}