buildTimer function

Widget buildTimer(
  1. BuildContext context,
  2. OpenUiNode node
)

Timer(seconds, label?): counts the bound seconds down to 0.

Implementation

Widget buildTimer(BuildContext context, OpenUiNode node) {
  final label = node.props.string('label');
  return CountdownTimer(
    field: node.field(
      'seconds',
      name: label != null && label.isNotEmpty ? label : null,
    ),
    label: label,
    streaming: node.isStreaming,
  );
}