updateFrom method

void updateFrom(
  1. covariant FlintComponent next
)

Receives the next component instance when Flint preserves this instance.

Override this in stateful components that also accept constructor values. Flint keeps the existing instance so local state survives, then gives it the newly-created component so props-like fields can be copied in.

Implementation

void updateFrom(covariant FlintComponent next) {}