selector.runtimeType // return data type of the variable Example: if (selector.runtimeType == int) print("Hello")