keyBuilder method

Widget keyBuilder({
  1. required Key key,
})

Adds a key to a widget.

Implementation

Widget keyBuilder({
  required Key key,
}) {
  return KeyedSubtree(
    key: key,
    child: this,
  );
}