rendersOnPhysicalModel function
- BoxShape? shape,
- BorderRadius? borderRadius,
- double? elevation,
Asserts that a Finder locates a single object whose root RenderObject is a RenderPhysicalModel or a RenderPhysicalShape.
- If the render object is a RenderPhysicalModel
- If
shape
is non null asserts that RenderPhysicalModel.shape is equal toshape
. - If
borderRadius
is non null asserts that RenderPhysicalModel.borderRadius is equal toborderRadius
. - If
elevation
is non null asserts thatRenderPhysicalModel.elevation
is equal toelevation
.
- If
- If the render object is a RenderPhysicalShape
- If
borderRadius
is non null asserts that the shape is a rounded rectangle with this radius. - If
borderRadius
is null, asserts that the shape is equivalent toshape
. - If
elevation
is non null asserts thatRenderPhysicalModel.elevation
is equal toelevation
.
- If
Implementation
Matcher rendersOnPhysicalModel({
BoxShape? shape,
BorderRadius? borderRadius,
double? elevation,
}) {
return _RendersOnPhysicalModel(
shape: shape,
borderRadius: borderRadius,
elevation: elevation,
);
}