registerProperty<TValue> method

  1. @override
BindableProperty<TValue> registerProperty<TValue>(
  1. Object propertyKey,
  2. BindableProperty<TValue> property
)
override

注册一个绑定属性

propertyKey 指定属性键

property 指定绑定属性

Implementation

@override
BindableProperty<TValue> registerProperty<TValue>(
    Object propertyKey, BindableProperty<TValue> property) {
  (_properties ??= <Object, BindableProperty<dynamic>>{})[propertyKey] =
      property;
  return property;
}