enableNullSafetyTypes<R> method

R enableNullSafetyTypes <R>(
  1. R body(
      )
    )

    Code that understands nullability should be run using this method, otherwise all type operations will treat all nullabilities as star.

    Implementation

    static R enableNullSafetyTypes<R>(R Function() body) {
      return runZoned<R>(body, zoneValues: {_zoneKey: true});
    }