children property

  1. @override
List<Widget> get children
override

Child widgets that receive forwarded messages.

Override this to declare child widgets. The framework automatically forwards messages to all children before calling handleUpdate.

Implementation

@override
List<Widget> get children {
  if (visible) return [child];
  if (replacement != null) return [replacement!];
  return const [];
}