key property

Key? key
final

A key to be passed through to the resultant widget.

This allows the identification of different BottomNavigationBarItems through their keys.

When changing the number of bar items in response to a bar item being tapped, giving each item a key will allow the inkwell / splash animation to be correctly positioned.

Implementation

final Key? key;