resolveWith<T> method Null safety

MaterialStateProperty<T> resolveWith<T>(
  1. MaterialPropertyResolver<T> callback
)

Convenience method for creating a MaterialStateProperty from a MaterialPropertyResolver function alone.

Implementation

static MaterialStateProperty<T> resolveWith<T>(MaterialPropertyResolver<T> callback) => _MaterialStatePropertyWith<T>(callback);