In silidable.dart, the _SlidableState class declares a late final SlidableController controller and initializes it in initState. However, attempting to reassign it in didUpdateWidget causes an error.
I'm trying to figure out why Slidable.controller gets assigned two different objects in my project, but I still don't understand why a controller that will be updated is defined as final.
I would be very grateful if someone could explain it. : )
In
silidable.dart, the_SlidableStateclass declares alate final SlidableController controllerand initializes it ininitState. However, attempting to reassign it indidUpdateWidgetcauses an error.I'm trying to figure out why
Slidable.controllergets assigned two different objects in my project, but I still don't understand why acontrollerthat will be updated is defined asfinal.I would be very grateful if someone could explain it. : )