build method

  1. @override
Widget build({
  1. bool hinted = true,
  2. bool big = false,
  3. bool expanded = false,
})
override

Builds the Widget representation of this CallButton.

Implementation

@override
Widget build({bool hinted = true, bool big = false, bool expanded = false}) {
  return Obx(() {
    final OngoingCallState state = c.state.value;

    return CallButtonWidget(
      hint: hint,
      asset: SvgIcons.callParticipants,
      offset: const Offset(2, 0),
      hinted: hinted,
      expanded: expanded,
      big: big,
      constrained: c.isMobile,
      onPressed:
          c.isMonolog || (c.isDialog && state != OngoingCallState.active)
          ? null
          : () => c.openAddMember(router.context!),
    );
  });
}