isOriginalAnimation property

bool isOriginalAnimation
final

This is the required field it allows to enable or disable the animation of the button currently it's animation is based on the 'DecoratedBoxTransition', If it is disabled than user can give the shadow to the button but if it is set to true than cannot give shadow to the button when search box is closed.

Implementation

final bool isOriginalAnimation;