numeric method Null safety

String? numeric(
  1. String? value,
  2. {String? message}
)

Implementation

static String? numeric(String? value, {String? message}) =>
    value == null || value.isEmpty || validations.isNumeric(value) ? null : message ?? 'Please enter a valid number';