setBindingProperty method

  1. @override
void setBindingProperty(
  1. String key,
  2. dynamic value
)

Implementation

@override
void setBindingProperty(String key, value) {
  switch (key) {
    case 'src': src = castToType<String>(value); break;
    case 'loop': loop = castToType<bool>(value); break;
    case 'autoplay': autoplay = castToType<bool>(value); break;
    case 'currentTime': currentTime = castToType<num>(value).toInt(); break;
    default: super.setBindingProperty(key, value);
  }
}