DrawContext
DrawContext is an extension of MeasureContext that stores a Canvas and other properties. It also defines helpful drawing functions.
Inheritors
Properties
Functions
Link copied to clipboard
Overlays the given color with DrawContext.elevationOverlayColor, changing the opacity of DrawContext.elevationOverlayColor depending on the value of elevationDp.
Link copied to clipboard
Restores the Canvas state.
Link copied to clipboard
Restores the Canvas state to the given save level.
Link copied to clipboard
Saves the Canvas state.
Link copied to clipboard
Calls the specified function block with DrawContext.canvas as its receiver.
Link copied to clipboard
Temporarily swaps the Canvas and yields DrawContext as the block’s receiver.