// Copyright 2014 The Flutter Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
/// Returns [true] if [address] is an IPv6 address. | |
bool isIPv6Address(String address) { | |
try { | |
Uri.parseIPv6Address(address); | |
return true; | |
} on FormatException { | |
return false; | |
} | |
} |