I still new with Dart language.
I want to create a custom Stepper class with extends
current Stepper class. The reason why I need to create custom Stepper because I need to override function _buildHorizontal
Current workaround:
import 'package:flutter/material.dart';
class CustomStepper extends Stepper {
CustomStepper({
Key key,
@required Step steps,
ScrollPhysics physics,
StepperType type = StepperType.vertical,
int currentStep = 0,
ValueChanged<int> onStepTapped,
VoidCallback onStepContinue,
VoidCallback onStepCancel,
ControlsWidgetBuilder controlsBuilder,
}) : assert(steps != null),
assert(type != null),
assert(currentStep != null),
super(key: key);
}
My question is, how to override _buildHorizontal
in a right way?