Optional<T> constructor

Optional<T>({
  1. String? message,
})

Creates a new instance of the Optional validation rule.

Implementation

Optional({String? message}) : super(message);