StyleConfig.enabled constructor

StyleConfig.enabled({
  1. bool shouldDecorate = true,
})

shouldDecorate tells whether or not to apply backgroundColor, border and cornerRadius

Implementation

factory StyleConfig.enabled({bool shouldDecorate = true}) =>
    StyleConfig(shouldExpand: false, shouldDecorate: shouldDecorate);