phone static method

String? phone(
  1. String? v
)

Implementation

static String? phone(String? v) =>
    (v != null && v.length >= 10) ? null : 'Invalid phone';