material method
Add Material to widget
Equivalent to
Material(
elevation: elevation,
color: color,
shadowColor: shadowColor
)
Implementation
Niku material({double elevation = 0, Color? color, Color? shadowColor}) {
_widget = Material(
child: _widget,
elevation: elevation,
color: color,
shadowColor: shadowColor,
);
return this;
}