withTraits method
DeviceWidgetBuilder
withTraits(
- List<
Trait> traits, { - dynamic backgroundColor = Colors.white,
- EdgeInsets padding = const EdgeInsets.all(8.0),
- EdgeInsets margins = const EdgeInsets.only(top: 8.0, left: 16.0, right: 16.0),
Implementation
DeviceWidgetBuilder withTraits(List<Trait> traits,
{backgroundColor = Colors.white,
EdgeInsets padding = const EdgeInsets.all(8.0),
EdgeInsets margins =
const EdgeInsets.only(top: 8.0, left: 16.0, right: 16.0)}) {
traits.forEach((trait) {
_withTrait(trait,
backgroundColor: backgroundColor, padding: padding, margins: margins);
});
return this;
}