Result.invalid constructor

Result.invalid(
  1. String? expected,
  2. dynamic value
)

Implementation

Result.invalid(this.expected, this.value) : isValid = false;