ipAddress method Null safety

AskValidator ipAddress(
  1. {int version = AskValidatorIPAddress.either}
)

Validates that input is a IP address By default both v4 and v6 addresses are valid Pass a version to limit the input to one or the other. If passed version must be AskValidatorIPAddress.ipv4 or AskValidatorIPAddress.ipv6.

Implementation

static AskValidator ipAddress({int version = AskValidatorIPAddress.either}) =>
    AskValidatorIPAddress(version: version);