tryCase<T> method

T? tryCase<T>()

只对自定义对象有用

Implementation

T? tryCase<T>() {
  return modelValue is T ? modelValue : null;
}