TitleActionTheme constructor Null safety

const TitleActionTheme(
  1. {TextStyle? cancelStyle = DHStyle.cancelStyle,
  2. TextStyle? doneStyle = DHStyle.doneStyle,
  3. Color? backgroundColor,
  4. Decoration? decoration,
  5. double? height = 44.0,
  6. TextStyle? titleStyle = DHStyle.titleStyle}
)

Implementation

const TitleActionTheme({
  this.cancelStyle = DHStyle.cancelStyle,
  this.doneStyle = DHStyle.doneStyle,
  this.backgroundColor,
  this.decoration,
  this.height = 44.0,
  this.titleStyle = DHStyle.titleStyle,
}): assert(backgroundColor == null || decoration == null);