Header constructor

Header({
  1. required String title,
  2. String? subtitle,
  3. dynamic object,
  4. VoidCallback? onTap,
  5. double height = 40,
  6. Color backgroundColor = Colors.white,
  7. Color color = const Color(0xFF292B2F),
  8. TextStyle textStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w400, fontSize: 13),
  9. TextStyle subtitleStyle = const TextStyle(color: Color(0xFFA1A1A0), fontWeight: FontWeight.w300, fontSize: 10),
})

Implementation

Header({
  required this.title,
  this.subtitle,
  this.object,
  this.onTap,
  this.height: 40,
  this.backgroundColor: Colors.white,
  this.color: const Color(0xFF292B2F),
  this.textStyle: const TextStyle(
      color: Colors.black, fontWeight: FontWeight.w400, fontSize: 13),
  this.subtitleStyle: const TextStyle(
      color: Color(0xFFA1A1A0), fontWeight: FontWeight.w300, fontSize: 10),
});