Container

>()

first

expect

container

color

Colors

red

);

// If your test needed to work directly with the BoxDecoration, it should

// instead look for the ColoredBox, e.g.:

expect

find

byType

BoxDecoration

),

findsNothing

);

expect

find

byType

ColoredBox

),

findsOneWidget

);

});

Timeline

Landed in version: 1.15.4
In stable release: 1.17

References

API documentation:

Container