NowIndicatorStyle constructor

NowIndicatorStyle(
  1. BuildContext context, {
  2. NowIndicatorShape? shape,
  3. Color? lineColor,
  4. double? lineWidth,
})

Implementation

factory NowIndicatorStyle(
  BuildContext context, {
  NowIndicatorShape? shape,
  Color? lineColor,
  double? lineWidth,
}) {
  final defaultColor = context.theme.colorScheme.onBackground;
  return NowIndicatorStyle.raw(
    shape: shape ?? CircleNowIndicatorShape(color: defaultColor),
    lineColor: lineColor ?? defaultColor,
    lineWidth: lineWidth ?? 1,
  );
}