isValidSoftwareVersion static method

bool isValidSoftwareVersion(
  1. String softwareVersion
)

Returns true if the given softwareVersion conforms to the proper regex pattern.

Regex pattern ^\d+\.\d+\.\d+$

Implementation

static bool isValidSoftwareVersion(String softwareVersion) =>
    RegExp(r"^\d+\.\d+\.\d+$").hasMatch(softwareVersion);