ButtonProgressNotifier class

Inheritance

Constructors

ButtonProgressNotifier()

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ButtonProgress
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addProgressChangeListener(void listener(ButtonProgress buttonProgress)) → void
circular({double? progress, int? progressReserve, ProgressType? progressType, Color? foreground, Color? background, Color? circularBackground, bool? isProgressOpacityAnim, TextStyle? textStyle, String? prefix, TextStyle? prefixStyle, String? suffix, TextStyle? suffixStyle, double? size, BorderRadius? borderRadius, double? radius, double? ratio, bool? isArrow, bool? reverse, StrokeCap? strokeCap, double? startAngle, double? sweepAngle, BorderSide? borderSide, Gradient? circularBackgroundGradient, Gradient? foregroundGradient, Gradient? backgroundGradient, List<BoxShadow>? shadows}) → void
改变圆形进度条属性
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
linear({double? progress, int? progressReserve, ProgressType? progressType, Color? foreground, Color? background, bool? isTextInner, bool? isTextFollowed, bool? isProgressOpacityAnim, TextStyle? textStyle, String? prefix, TextStyle? prefixStyle, String? suffix, TextStyle? suffixStyle, double? height, BorderRadius? borderRadius, double? width, double? padding, double? indicatorRatio, BorderSide? borderSide, Gradient? foregroundGradient, Gradient? backgroundGradient, List<BoxShadow>? shadows}) → void
改变线性进度条属性
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
polygon({double? progress, int? progressReserve, ProgressType? progressType, Color? foreground, Color? background, bool? isProgressOpacityAnim, String? indeterminateText, double? indicatorRatio, TextStyle? textStyle, String? prefix, TextStyle? prefixStyle, String? suffix, TextStyle? suffixStyle, double? size, double? borderRadius, double? width, int? side, bool? reverse, StrokeCap? strokeCap, Color? progressBackground, Gradient? progressBackgroundGradient, double? startRatio, BorderSide? borderSide, Gradient? foregroundGradient, Gradient? backgroundGradient, List<BoxShadow>? shadows}) → void
改变正多边形环绕进度属性
rectangle({double? progress, int? progressReserve, ProgressType? progressType, Color? foreground, Color? background, bool? isProgressOpacityAnim, String? indeterminateText, double? indicatorRatio, TextStyle? textStyle, String? prefix, TextStyle? prefixStyle, String? suffix, TextStyle? suffixStyle, double? size, BorderRadius? borderRadius, double? width, double? height, bool? reverse, StrokeCap? strokeCap, Color? progressBackground, Gradient? progressBackgroundGradient, double? startRatio, BorderSide? borderSide, Gradient? foregroundGradient, Gradient? backgroundGradient, List<BoxShadow>? shadows}) → void
改变矩形进度属性
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited