HydrationMismatch class

Describes a single hydration mismatch and the recovery applied.

Reported through the hydration mismatch handler and DevTools instead of throwing, so one bad boundary never breaks the whole page.

Constructors

HydrationMismatch({required String path, required String boundary, required String expected, required String actual, required String recovery})
Creates a hydration mismatch record.
const

Properties

actual → String
What the DOM actually held, e.g. element <div> or missing marker.
final
boundary → String
Nearest marker-delimited boundary, e.g. bloom:live, or 'root'.
final
expected → String
What hydration expected, e.g. element <p>.
final
hashCode → int
The hash code for this object.
no setterinherited
path → String
Slash-separated descriptor path, e.g. Div[1]/LiveNode/P.
final
recovery → String
Recovery taken, e.g. remounted boundary or remounted target.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited