expand method
Expands the appbar to its expanded state, optionally with animation.
If useAnimate is true (default), the expansion will be animated.
Otherwise, the app bar will snap to its expanded size immediately.
Implementation
void expand({bool useAnimate = true}) {
if (useAnimate) {
performAlignment(AppBarAlignmentCommand.expand);
return;
}
setPixels(expandedPixels);
}