value property

ButtonStyle get value

Implementation

ButtonStyle get value => ButtonStyle(
      textStyle: NikuState<TextStyle>(
        all: textStyleState?.all?.value,
        disabled: textStyleState?.disabled?.value,
        dragged: textStyleState?.dragged?.value,
        error: textStyleState?.error?.value,
        focused: textStyleState?.focused?.value,
        hovered: textStyleState?.hovered?.value,
        pressed: textStyleState?.pressed?.value,
        scrolledUnder: textStyleState?.scrolledUnder?.value,
        selected: textStyleState?.selected?.value,
        base: textStyleState?.base?.value,
      ).value,
      backgroundColor: backgroundColorState?.value,
      foregroundColor: NikuState<Color>(
        all: textStyleState?.all?.value.color ?? foregroundColorState?.all,
        disabled: textStyleState?.disabled?.value.color ??
            foregroundColorState?.disabled,
        dragged: textStyleState?.dragged?.value.color ??
            foregroundColorState?.dragged,
        error:
            textStyleState?.error?.value.color ?? foregroundColorState?.error,
        focused: textStyleState?.focused?.value.color ??
            foregroundColorState?.focused,
        hovered: textStyleState?.hovered?.value.color ??
            foregroundColorState?.hovered,
        pressed: textStyleState?.pressed?.value.color ??
            foregroundColorState?.pressed,
        scrolledUnder: textStyleState?.scrolledUnder?.value.color ??
            foregroundColorState?.scrolledUnder,
        selected: textStyleState?.selected?.value.color ??
            foregroundColorState?.selected,
        base: textStyleState?.base?.value.color ?? foregroundColorState?.base,
      ).value,
      overlayColor: overlayColorState?.value,
      shadowColor: shadowColorState?.value,
      elevation: elevationState?.value,
      padding: paddingState?.value,
      minimumSize: minimumSizeState?.value,
      fixedSize: fixedSizeState?.value,
      maximumSize: maximumSizeState?.value,
      side: sideState?.value,
      shape: shapeState?.value,
      mouseCursor: mouseCursorState?.value,
      visualDensity: visualDensity,
      tapTargetSize: tapTargetSize,
      animationDuration: animationDuration,
      enableFeedback: enableFeedback,
      alignment: alignment,
      splashFactory: splashFactory,
    );