RasterWidgetFallbackDelegate class Null safety
A delegate which the RasterWidget can use to fallback to regular rendering if a platform view is present in the layer tree.
Consumers of RasterWidget should almost never use this delegate. For the most part, the raster widget only functions as a performance improvement. If a platform view is present, the performance improving qualities aren't possible and using this API is pointless.
Instead, this interface is useful if a generic/reusable widget is being created which may include a platform view and it needs to handle this transparently. For example, the framework uses this for the zoom page transition so that navigating to a page shows the same animation whether or not there is a platform view.
Constructors
- RasterWidgetFallbackDelegate()
-
const constructor so that subclasses can be const.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
paintFallback(
PaintingContext context, Offset offset, Size size, PaintingContextCallback painter) → void -
Paint the child via
painter
, applying any effects that would have been painted with the RasterWidgetDelegate. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited