valueFromMaterial method

dynamic valueFromMaterial(
  1. String key,
  2. dynamic value
)

从material获取key对应的值, 如果为null取value的值, 如果还是null则取cupertino里的值

Implementation

dynamic valueFromMaterial(String key, dynamic value) {
  return valueFromMap(material, key, value);
}