isNumeric function

bool isNumeric(
  1. String s
)

Implementation

bool isNumeric(String s) => s.isNotEmpty && int.tryParse(s.replaceAll("+", "")) != null;