triangle method

VxTriangle triangle({
  1. Key? key,
  2. Widget? child,
  3. Color? backgroundColor,
  4. double? width,
  5. double? height,
  6. double? strokeWidth,
})

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

Implementation

VxTriangle triangle({
  Key? key,
  Widget? child,
  Color? backgroundColor,
  double? width,
  double? height,
  double? strokeWidth,
}) =>
    VxTriangle(
      key: key,
      backgroundColor: backgroundColor,
      width: width,
      height: height,
      strokeWidth: strokeWidth,
      child: this,
    );