preferRasterization property Null safety

bool preferRasterization
override

Whether the route transition will prefer to animate a rasterized snapshot of the entering/exiting routes.

When this value is true, certain route transitions (such as the Android zoom page transition) will rasterize the entering and exiting routes. These textures are then animated in place of the underlying widgets to improve performance of the transition.

Generally this means that animations that occur on the entering/exiting route while the route animation plays may appear frozen - unless they are a hero animation or something that is drawn in a separate overlay.

Implementation

@override
bool get preferRasterization => false;