platformValueNullable<T> method

T? platformValueNullable<T>({
  1. T? material,
  2. T? cupertino,
})

Returns the platform-appropriate nullable value of type T.

Selects material on Android and cupertino on iOS. Both values are optional and may be null.

Implementation

T? platformValueNullable<T>({T? material, T? cupertino}) =>
    _valueProviderNullable(material: material, cupertino: cupertino);