getEffectivePosition method Null safety

double getEffectivePosition(
  1. BuildContext context
)

Implementation

double getEffectivePosition(BuildContext context) {
  return position ?? IndicatorTheme.of(context)!.position ?? .5;
}