withTraits method

DeviceWidgetBuilder withTraits(
  1. List<Trait> traits, {
  2. dynamic backgroundColor = Colors.white,
  3. EdgeInsets padding = const EdgeInsets.all(8.0),
  4. 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;
}