getExpected method Null safety

dynamic getExpected()

Gets the value expected by schema validation.

Returns the expected value.