isIpAddress function

bool isIpAddress(
  1. Object? input
)

Returns true if input is a string holding a strict dotted-quad IPv4 address — no leading zeros, signs or surrounding/embedded whitespace.

Implementation

bool isIpAddress(Object? input) =>
    input is String && _ipv4RegExp.hasMatch(input);