BtnView constructor

const BtnView({
  1. Key? key,
  2. required dynamic onPress()?,
  3. required String? title,
  4. EdgeInsets? margin,
  5. BoxDecoration? decoration,
  6. TextStyle? textStyle,
  7. EdgeInsets? padding,
})

Implementation

const BtnView(
    {Key? key,
    required this.onPress,
    required this.title,
    this.margin,
    this.decoration,
    this.textStyle,
    this.padding})
    : super(key: key);