toValue<T> static method

T? toValue<T>(
  1. dynamic value
)

Implementation

static T? toValue<T>(dynamic value) => value is T ? value : null;