rendersOnPhysicalModel function
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
shapeis non null asserts that RenderPhysicalModel.shape is equal toshape. - If
borderRadiusis non null asserts that RenderPhysicalModel.borderRadius is equal toborderRadius. - If
elevationis non null asserts that RenderPhysicalModel.elevation is equal toelevation.
- If
- If the render object is a RenderPhysicalShape
- If
borderRadiusis non null asserts that the shape is a rounded rectangle with this radius. - If
borderRadiusis null, asserts that the shape is equivalent toshape. - If
elevationis non null asserts that RenderPhysicalModel.elevation is equal toelevation.
- If
Implementation
Matcher rendersOnPhysicalModel({
BoxShape shape,
BorderRadius borderRadius,
double elevation,
}) {
return _RendersOnPhysicalModel(
shape: shape,
borderRadius: borderRadius,
elevation: elevation,
);
}