horizontalDirectional static method

DoubleChevron horizontalDirectional(
  1. BuildContext context, {
  2. Color? color,
  3. double? size,
  4. Shadow? shadow,
  5. String? semanticLabel,
  6. Key? key,
})

Implementation

static DoubleChevron horizontalDirectional(
  BuildContext context, {
  Color? color,
  double? size,
  Shadow? shadow,
  String? semanticLabel,
  Key? key,
}) {
  return switch (Directionality.of(context)) {
    TextDirection.ltr => DoubleChevron.right(
      color: color,
      size: size,
      shadow: shadow,
      semanticLabel: semanticLabel,
      key: key,
    ),
    TextDirection.rtl => DoubleChevron.left(
      color: color,
      size: size,
      shadow: shadow,
      semanticLabel: semanticLabel,
      key: key,
    ),
  };
}