render method

  1. @override
void render(
  1. Buffer buffer,
  2. Rect area
)
override

Renders the underlying widget to the provided buffer within the area.

Implementation

@override
void render(Buffer buffer, Rect area) {
  final flex = widget as Flexible;
  if (childElement != null &&
      childElement!.widget.runtimeType == flex.child.runtimeType) {
    childElement!.update(flex.child);
  } else {
    childElement = flex.child.createElement();
    childElement!.mount(this);
  }
  childElement!.render(buffer, area);
}