pub struct ChipAnimationStyle {
pub enable_animation: Option<AnimationStyle>,
pub select_animation: Option<AnimationStyle>,
pub avatar_drawer_animation: Option<AnimationStyle>,
pub delete_drawer_animation: Option<AnimationStyle>,
}Expand description
Used to override the default chip animations durations.
See also:
ChipAttributes::chip_animation_style, which is used to override the chip animations durations.
Fields§
§enable_animation: Option<AnimationStyle>If AnimationStyle::duration is provided, it will be used to override
the ChipAttributes enable animation duration. If it is null, then
AnimationStyle::duration will default to 75ms.
If AnimationStyle::reverse_duration is provided, it will be used to
override the chip disable animation duration. If it is null, then
AnimationStyle::reverse_duration will default to 75ms.
select_animation: Option<AnimationStyle>If AnimationStyle::duration is provided, it will be used to override
the chip select animation duration. If it is null, then
AnimationStyle::duration will default to 195ms.
If AnimationStyle::reverse_duration is provided, it will be used to
override the chip unselect animation duration. If it is null, then
AnimationStyle::reverse_duration will default to 195ms.
avatar_drawer_animation: Option<AnimationStyle>If AnimationStyle::duration is provided, it will be used to override
the chip avatar animation duration. If it is null, then
AnimationStyle::duration will default to 150ms.
If AnimationStyle::reverse_duration is provided, it will be used to
override the chip avatar reverse animation duration. If it is null, then
AnimationStyle::reverse_duration will default to 150ms.
delete_drawer_animation: Option<AnimationStyle>If AnimationStyle::duration is provided, it will be used to override
the chip delete icon animation duration. If it is null, then
AnimationStyle::duration will default to 150ms.
If AnimationStyle::reverse_duration is provided, it will be used to
override the chip delete icon reverse animation duration. If it is null, then
AnimationStyle::reverse_duration will default to 150ms.
Implementations§
Source§impl ChipAnimationStyle
impl ChipAnimationStyle
Sourcepub fn new() -> ChipAnimationStyle
pub fn new() -> ChipAnimationStyle
Creates an instance of ChipAnimationStyle; Dart’s named arguments are the setters.
Sourcepub fn enable_animation(
self,
enable_animation: AnimationStyle,
) -> ChipAnimationStyle
pub fn enable_animation( self, enable_animation: AnimationStyle, ) -> ChipAnimationStyle
Dart ChipAnimationStyle(enableAnimation:).
Sourcepub fn select_animation(
self,
select_animation: AnimationStyle,
) -> ChipAnimationStyle
pub fn select_animation( self, select_animation: AnimationStyle, ) -> ChipAnimationStyle
Dart ChipAnimationStyle(selectAnimation:).
Sourcepub fn avatar_drawer_animation(
self,
avatar_drawer_animation: AnimationStyle,
) -> ChipAnimationStyle
pub fn avatar_drawer_animation( self, avatar_drawer_animation: AnimationStyle, ) -> ChipAnimationStyle
Dart ChipAnimationStyle(avatarDrawerAnimation:).
Sourcepub fn delete_drawer_animation(
self,
delete_drawer_animation: AnimationStyle,
) -> ChipAnimationStyle
pub fn delete_drawer_animation( self, delete_drawer_animation: AnimationStyle, ) -> ChipAnimationStyle
Dart ChipAnimationStyle(deleteDrawerAnimation:).