ticket method

VxTicket ticket({
  1. Key? key,
  2. Widget? child,
  3. Color? backgroundColor,
  4. double? width,
  5. double? height,
  6. bool? isHardEdged,
  7. bool? isTwoSided,
})

Extension method to directly access VxTicket with any widget without wrapping or with dot operator.

Implementation

VxTicket ticket({
  Key? key,
  Widget? child,
  Color? backgroundColor,
  double? width,
  double? height,
  bool? isHardEdged,
  bool? isTwoSided,
}) =>
    VxTicket(
      key: key,
      child: this,
      backgroundColor: backgroundColor,
      width: width,
      height: height,
      isHardEdged: isHardEdged,
      isTwoSided: isTwoSided,
    );