build method

  1. @override
Widget build()
override

Subclasses should override this function to actually call the appropriate build function (e.g., StatelessWidget.build or State.build) for their widget.

Implementation

@override
Widget build() {
  return KeyProvider<T>(
    keyId: keyId,
    child: widget.child,
    builder: (context, key, child) {
      return StaticContainer(
        key: key,
        container: widget.container,
        child: child!,
      );
    },
  );
}