1"use strict";(self.webpackChunkduit_webdoc=self.webpackChunkduit_webdoc||[]).push([[1133],{6910:(t,i,e)=>{e.r(i),e.d(i,{assets:()=>n,contentTitle:()=>o,default:()=>h,frontMatter:()=>c,metadata:()=>u,toc:()=>l});var r=e(4848),s=e(8453);const c={},o="SwitchAttributes",u={id:"api/go_api/duit_attributes/SwitchAttributes",title:"SwitchAttributes",description:"SwitchAttributes represents attributes for Switch widget.",source:"@site/docs/api/go_api/duit_attributes/SwitchAttributes.md",sourceDirName:"api/go_api/duit_attributes",slug:"/api/go_api/duit_attributes/SwitchAttributes",permalink:"/docs/api/go_api/duit_attributes/SwitchAttributes",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"StackAttributes",permalink:"/docs/api/go_api/duit_attributes/StackAttributes"},next:{title:"TextAttributes",permalink:"/docs/api/go_api/duit_attributes/TextAttributes"}},n={},l=[{value:"Methods",id:"methods",level:2}];function a(t){const i={a:"a",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",ul:"ul",...(0,s.R)(),...t.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.header,{children:(0,r.jsx)(i.h1,{id:"switchattributes",children:"SwitchAttributes"})}),"\n",(0,r.jsx)(i.p,{children:"SwitchAttributes represents attributes for Switch widget."}),"\n",(0,r.jsxs)(i.p,{children:["Flutter widget: ",(0,r.jsx)(i.a,{href:"https://api.flutter.dev/flutter/material/Switch-class.html",children:"https://api.flutter.dev/flutter/material/Switch-class.html"})]}),"\n",(0,r.jsx)(i.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsxs)(i.ul,{children:["\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetActiveColor(activeColor *duit_props.Color) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetActiveTrackColor(activeTrackColor *duit_props.Color) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetAutofocus(autofocus bool) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetFocusColor(focusColor *duit_props.Color) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetHoverColor(hoverColor *duit_props.Color) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetInactiveTrackColor(inactiveTrackColor *duit_props.Color) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetMaterialTapTargetSize(materialTapTargetSize duit_props.MaterialTapTargetSize) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetOverlayColor(overlayColor *duit_props.WidgetStateColor) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetSplashRadius(splashRadius float32) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetThumbColor(thumbColor *duit_props.WidgetStateColor) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetTrackColor(trackColor *duit_props.WidgetStateColor) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetTrackOutlineColor(trackOutlineColor *duit_props.WidgetStateColor) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetTrackOutlineWidth(trackOutlineWidth *duit_props.WidgetStateFloat32) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) SetValue(value bool) (*SwitchAttributes)"}),"\n",(0,r.jsx)(i.li,{children:"func (*SwitchAttributes) Validate() (error)"}),"\n"]})]})}function h(t={}){const{wrapper:i}={...(0,s.R)(),...t.components};return i?(0,r.jsx)(i,{...t,children:(0,r.jsx)(a,{...t})}):a(t)}},8453:(t,i,e)=>{e.d(i,{R:()=>o,x:()=>u});var r=e(6540);const s={},c=r.createContext(s);function o(t){const i=r.useContext(c);return r.useMemo((function(){return"function"==typeof t?t(i):{...i,...t}}),[i,t])}function u(t){let i;return i=t.disableParentContext?"function"==typeof t.components?t.components(s):t.components||s:o(t.components),r.createElement(c.Provider,{value:i},t.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.