isValid method

bool isValid()

参数是否合法

Implementation

bool isValid() => serverId != null && serverId! > 0;