NewPage.fromPattern constructor
NewPage.fromPattern(
- PagePattern pattern, {
- PageSize? pageSize,
- EdgeInsets? margins,
- int? rotation,
- Color? backgroundColor,
New page from tiled pattern
pattern
The pattern to use for the page.
pageSize
The size of the page. Defaults to A4.
margins
The margins of the page. Defaults to 0.
rotation
The rotation of the page. Defaults to 0.
backgroundColor
The background color of the page. Defaults to white.
Implementation
factory NewPage.fromPattern(PagePattern pattern,
{PageSize? pageSize,
EdgeInsets? margins,
int? rotation,
Color? backgroundColor}) {
return NewPage._(
type: 'pattern',
sourcePattern: pattern,
pageSize: pageSize ?? PageSize.a4,
margins: margins,
rotation: rotation,
backgroundColor: backgroundColor);
}