jQuery
или $
является функцией (вы знаете, $
является псевдонимом jQuery
).
// Define a local copy of jQuery
jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context, rootjQuery );
},
В Javascript все объекты даже function
тоже , Следовательно, вы можете напрямую добавлять свойства к функциям.
jQuery.find = function () {
}
Interval
, как предложил Реми, является решением.
_animation1 = Tween<double>(begin: 0.2, end: 1).animate(CurvedAnimation(
parent: _controller,
curve: Interval(0.5, 1.0),
));
_animation2 = Tween<double>(begin: 0.2, end: 1).animate(CurvedAnimation(
parent: _controller,
curve: Interval(0.8, 1.0),
));