getEffectivePosition method Null safety

double getEffectivePosition(
  1. BuildContext context
)

Implementation

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