Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.
1
Formatting
String
Show Parameters
bool
default:"false"
If true, uses the full unit names (e.g., ‘Kilobytes’); otherwise, uses abbreviations (e.g., ‘KB’).
Retrieves the file size and formats it into human-readable units (B, KB, MB, GB).
final size = file.fileFormattedSize(fullySizedName: true);print(size); // 5.32 Megabytes
2
Getters
double
Returns the file size in raw Bytes as a double.
final size = file.sizeInBytes; // 1048576.0 for a 1MB file
double
Returns the file size in Kilobytes (KB) as a [double].
print(file.sizeInKB); // 1024.0 for a 1MB file
double
Returns the file size in Megabytes (MB) as a [double].
print(file.sizeInMB); // 1.0 for a 1MB file
double
Returns the file size in Gigabytes (GB) as a [double].
print(file.sizeInGB); // 0.0009765625 for a 1MB file
3
Comparators
bool
Show Parameters
double
required
The size limit in megabytes.
Checks if the file size is strictly greater than the specified size in Megabytes (MB).
print(file.isLargerThanMb(50)); // true if file is 50.01MB
bool
Show Parameters
double
required
The size limit in megabytes.
Checks if the file size is strictly less than the specified size in Megabytes (MB).
print(file.isSmallerThanMb(0.5)); // true if file is 400KB
bool
Show Parameters
File
required
The other File object to compare size against.
Checks if this file is larger than another File object by comparing raw byte counts.
print(fileA.isLargerThanFile(fileB));
bool
Show Parameters
File
required
The other File object to compare size against.
Checks if this file is smaller than another File object by comparing raw byte counts.
print(fileA.isSmallerThanFile(fileB));
bool
Show Parameters
File
required
The other File object to compare size against.
Checks if this file has the exact same size (byte count) as another [File] object.
print(fileA.isSameSizeAsFile(fileB));
bool
Show Parameters
double
required
The minimum size limit (inclusive) in megabytes.
double
required
The maximum size limit (inclusive) in megabytes.
Checks if the file size falls inclusively between the specified minimum and maximum sizes in Megabytes (MB).
// Check if file is between 500 KB (0.5 MB) and 10 MBprint(file.isSizeBetween(minMB: 0.5, maxMB: 10));
4
Manipulators
double
Show Parameters
double
required
The total limit in Megabytes (MB).
Calculates the file’s size as a percentage of a given total size limit.
// If file is 5MB and limit is 100MB, returns 5.0print(file.percentageOfLimitMb(100));
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Starry Hub","description":"Starry Hub is your go-to hub for Flutter development, featuring innovative Flutter Extend packages, practical coding tutorials, and productivity-boosting extensions. Explore comprehensive guides, clean code examples, and developer tools designed to accelerate your Flutter projects and master mobile app development.","colors":{"primary":"#1F9ABC","light":"#1F9ABC","dark":"#1F9ABC"},"logo":{"light":"https://mintcdn.com/starrycodes/LCvGa8j48rtx8kZ8/logo/logo_alt.png?fit=max\u0026auto=format\u0026n=LCvGa8j48rtx8kZ8\u0026q=85\u0026s=36a338e503cc3dccf918aeccbe85a3f8","dark":"https://mintcdn.com/starrycodes/LCvGa8j48rtx8kZ8/logo/logo_alt.png?fit=max\u0026auto=format\u0026n=LCvGa8j48rtx8kZ8\u0026q=85\u0026s=36a338e503cc3dccf918aeccbe85a3f8"},"favicon":"logo/logo.png","appearance":{"strict":false},"background":{"decoration":"windows","color":{"light":"#FCFCFC","dark":"#1C1F22"}},"navbar":{"links":[{"label":"GitHub","icon":{"name":"github"},"href":"https://github.com/KenStarry"},{"label":"LinkedIn","icon":{"name":"linkedin"},"href":"https://linkedin.com/in/kenneth-michuki-133a04217"}],"primary":{"type":"button","label":"Support My Work","href":"https://buymeacoffee.com/KenStarry"}},"footer":{"socials":{"x":"https://x.com/ken_starry","github":"https://github.com/KenStarry","linkedin":"https://linkedin.com/in/kenneth-michuki-133a04217"}},"search":{"prompt":"Search all of Starry's hub..."},"fonts":{"heading":{"family":"Space Grotesk"},"body":{"family":"Inter","weight":500}},"icons":{"library":"fontawesome"},"styling":{"eyebrows":"section","codeblocks":{"theme":{"light":"github-light","dark":"github-dark-dimmed"}}},"banner":{"content":"🚀 Flutter_Extend Version **0.3.0** is now live! See our [changelog](/flutter_extend/changelog/changelog) for details.","dismissible":true},"thumbnails":{"appearance":"dark","background":"https://mintlify.s3.us-west-1.amazonaws.com/starrycodes/images/cover.png"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"starrycodes","hasAudioNarration":false,"actualSubdomain":"starrycodes","customDomains":[],"gitSource":{"type":"github","owner":"kenstarry","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae9422573a0191ccbcbfb0d:success","clientVersion":"0.0.4160","searchFilterCounts":[{"language":"default","tag":"Packages","count":39},{"language":"default","tag":"Flutter_Extend","count":39},{"language":"default","tag":"Build Context","count":5},{"language":"default","tag":"String","count":5},{"language":"default","tag":"Files","count":4},{"language":"default","tag":"Animations","count":3},{"language":"default","tag":"Date \u0026 Time","count":3},{"language":"default","tag":"Futures","count":3},{"language":"default","tag":"Extend Generators","count":3},{"language":"default","tag":"Widgets","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"flutter_extend/api/files/file_size_checks","slug":"/flutter_extend/api/files/file_size_checks","pageMetadata":{"title":"File - Size Check Operations","sidebarTitle":"File Size Checks","icon":"folder","description":" Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.","keywords":["Flutter Files","Files","File Handling","Flutter"],"href":"/flutter_extend/api/files/file_size_checks"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,ParamField,ResponseField,Step,Steps}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);return _jsxs(Steps,{titleSize:`h3`,children:[_jsx(Step,{title:`Formatting`,id:`formatting`,children:_jsxs(ResponseField,{name:`fileFormattedSize()`,type:`String`,id:`param-file-formatted-size`,children:[_jsx(Expandable,{title:`Parameters`,children:_jsx(ParamField,{body:`fullySizedName`,type:`bool`,default:`false`,id:`param-fully-sized-name`,children:_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`true`}),`, uses the full unit names (e.g., ‘Kilobytes’); otherwise, uses abbreviations (e.g., ‘KB’).`]})})}),_jsx(_components.p,{children:`Retrieves the file size and formats it into human-readable units (B, KB, MB, GB).`}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`2`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F47067`},children:`final`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:` size `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F47067`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:` file.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`fileFormattedSize`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(fullySizedName`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F47067`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#6CB6FF`},children:` true`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(size); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#768390`},children:`// 5.32 Megabytes`})]}),`\n`]})})})]})}),_jsxs(Step,{title:`Getters`,id:`getters`,children:[_jsxs(ResponseField,{name:`sizeInBytes`,type:`double`,id:`param-size-in-bytes`,children:[_jsxs(_components.p,{children:[`Returns the file size in raw Bytes as a `,_jsx(_components.code,{children:`double`}),`.`]}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`1`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F47067`},children:`final`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:` size `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F47067`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:` file.sizeInBytes; `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#768390`},children:`// 1048576.0 for a 1MB file`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`sizeInKB`,type:`double`,id:`param-size-in-kb`,children:[_jsx(_components.p,{children:`Returns the file size in Kilobytes (KB) as a [double].`}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`1`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(file.sizeInKB); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#768390`},children:`// 1024.0 for a 1MB file`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`sizeInMB`,type:`double`,id:`param-size-in-mb`,children:[_jsx(_components.p,{children:`Returns the file size in Megabytes (MB) as a [double].`}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`1`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(file.sizeInMB); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#768390`},children:`// 1.0 for a 1MB file`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`sizeInGB`,type:`double`,id:`param-size-in-gb`,children:[_jsx(_components.p,{children:`Returns the file size in Gigabytes (GB) as a [double].`}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`1`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(file.sizeInGB); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#768390`},children:`// 0.0009765625 for a 1MB file`})]}),`\n`]})})})]})]}),_jsxs(Step,{title:`Comparators`,id:`comparators`,children:[_jsxs(ResponseField,{name:`isLargerThanMb()`,type:`bool`,id:`param-is-larger-than-mb`,children:[_jsx(Expandable,{title:`Parameters`,children:_jsx(ParamField,{body:`mb`,type:`double`,required:true,id:`param-mb`,children:_jsx(_components.p,{children:`The size limit in megabytes.`})})}),_jsx(_components.p,{children:`Checks if the file size is strictly greater than the specified size in Megabytes (MB).`}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`1`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(file.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`isLargerThanMb`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#6CB6FF`},children:`50`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`)); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#768390`},children:`// true if file is 50.01MB`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`isSmallerThanMb()`,type:`bool`,id:`param-is-smaller-than-mb`,children:[_jsx(Expandable,{title:`Parameters`,children:_jsx(ParamField,{body:`mb`,type:`double`,required:true,id:`param-mb-1`,children:_jsx(_components.p,{children:`The size limit in megabytes.`})})}),_jsx(_components.p,{children:`Checks if the file size is strictly less than the specified size in Megabytes (MB).`}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`1`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(file.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`isSmallerThanMb`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#6CB6FF`},children:`0.5`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`)); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#768390`},children:`// true if file is 400KB`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`isLargerThanFile()`,type:`bool`,id:`param-is-larger-than-file`,children:[_jsx(Expandable,{title:`Parameters`,children:_jsx(ParamField,{body:`other`,type:`File`,required:true,id:`param-other`,children:_jsxs(_components.p,{children:[`The other `,_jsx(_components.code,{children:`File`}),` object to compare size against.`]})})}),_jsxs(_components.p,{children:[`Checks if this file is larger than another `,_jsx(_components.code,{children:`File`}),` object by comparing raw byte counts.`]}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`1`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(fileA.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`isLargerThanFile`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(fileB));`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`isSmallerThanFile()`,type:`bool`,id:`param-is-smaller-than-file`,children:[_jsx(Expandable,{title:`Parameters`,children:_jsx(ParamField,{body:`other`,type:`File`,required:true,id:`param-other-1`,children:_jsxs(_components.p,{children:[`The other `,_jsx(_components.code,{children:`File`}),` object to compare size against.`]})})}),_jsxs(_components.p,{children:[`Checks if this file is smaller than another `,_jsx(_components.code,{children:`File`}),` object by comparing raw byte counts.`]}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`1`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(fileA.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`isSmallerThanFile`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(fileB));`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`isSameSizeAsFile()`,type:`bool`,id:`param-is-same-size-as-file`,children:[_jsx(Expandable,{title:`Parameters`,children:_jsx(ParamField,{body:`other`,type:`File`,required:true,id:`param-other-2`,children:_jsxs(_components.p,{children:[`The other `,_jsx(_components.code,{children:`File`}),` object to compare size against.`]})})}),_jsx(_components.p,{children:`Checks if this file has the exact same size (byte count) as another [File] object.`}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`1`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(fileA.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`isSameSizeAsFile`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(fileB));`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`isSizeBetween()`,type:`bool`,id:`param-is-size-between`,children:[_jsxs(Expandable,{title:`Parameters`,children:[_jsx(ParamField,{body:`minMB`,type:`double`,required:true,id:`param-min-mb`,children:_jsx(_components.p,{children:`The minimum size limit (inclusive) in megabytes.`})}),_jsx(ParamField,{body:`maxMB`,type:`double`,required:true,id:`param-max-mb`,children:_jsx(_components.p,{children:`The maximum size limit (inclusive) in megabytes.`})})]}),_jsx(_components.p,{children:`Checks if the file size falls inclusively between the specified minimum and maximum sizes in Megabytes (MB).`}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`2`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#768390`},children:`// Check if file is between 500 KB (0.5 MB) and 10 MB`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(file.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`isSizeBetween`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(minMB`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F47067`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#6CB6FF`},children:` 0.5`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`, maxMB`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F47067`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#6CB6FF`},children:` 10`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`));`})]}),`\n`]})})})]})]}),_jsx(Step,{title:`Manipulators`,id:`manipulators`,children:_jsxs(ResponseField,{name:`percentageOfLimitMb()`,type:`double`,id:`param-percentage-of-limit-mb`,children:[_jsx(Expandable,{title:`Parameters`,children:_jsx(ParamField,{body:`totalLimitMB`,type:`double`,required:true,id:`param-total-limit-mb`,children:_jsx(_components.p,{children:`The total limit in Megabytes (MB).`})})}),_jsx(_components.p,{children:`Calculates the file’s size as a percentage of a given total size limit.`}),_jsx(CodeBlock,{filename:``,lines:`true`,wrap:`true`,numberOfLines:`2`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark-dimmed`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#22272e`,color:`#24292e`,\"--shiki-dark\":`#adbac7`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#768390`},children:`// If file is 5MB and limit is 100MB, returns 5.0`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(file.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCBDFB`},children:`percentageOfLimitMb`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#6CB6FF`},children:`100`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#ADBAC7`},children:`));`})]}),`\n`]})})})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark-dimmed"}},"config":{},"pageMetadata":{"title":"File - Size Check Operations","sidebarTitle":"File Size Checks","icon":"folder","description":" Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.","keywords":["Flutter Files","Files","File Handling","Flutter"],"href":"/flutter_extend/api/files/file_size_checks"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Formatting","slug":"formatting","depth":3,"children":[]},{"title":"Getters","slug":"getters","depth":3,"children":[]},{"title":"Comparators","slug":"comparators","depth":3,"children":[]},{"title":"Manipulators","slug":"manipulators","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"starrycodes","siteName":"Starry Hub","title":"File - Size Check Operations - Starry Hub","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-12-14T15:28:31.897Z","originalFileLocation":"flutter_extend/api/files/file_size_checks.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Starry Hub\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"File - Size Check Operations - Starry Hub\">\u003cmeta data-mint-head property=\"og:description\" content=\"Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Starry Hub\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://starrycodes.mintlify.site/_mintlify/api/og/v2?division=Files\u0026amp;title=File+-+Size+Check+Operations\u0026amp;description=+Powerful+extensions+for+dart%3Aio.File+to+simplify+size+formatting%2C+path+manipulation%2C+and+type+checking+for+local+files.\u0026amp;theme=5ec18ae3f99a8adb2d6046d1\u0026amp;signature=3cf32396b12ad4a0e6e0357b4f88a42f64caf43beb0d6b67889a500cf75a6350\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"File - Size Check Operations - Starry Hub\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://starrycodes.mintlify.site/_mintlify/api/og/v2?division=Files\u0026amp;title=File+-+Size+Check+Operations\u0026amp;description=+Powerful+extensions+for+dart%3Aio.File+to+simplify+size+formatting%2C+path+manipulation%2C+and+type+checking+for+local+files.\u0026amp;theme=5ec18ae3f99a8adb2d6046d1\u0026amp;signature=3cf32396b12ad4a0e6e0357b4f88a42f64caf43beb0d6b67889a500cf75a6350\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/starrycodes/dBAc-cQ1C4TomNGc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Starry Hub\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1F9ABC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/flutter_extend/api/files/file_size_checks.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://starrycodes.mintlify.app/#organization\",\"name\":\"Starry Hub\",\"url\":\"https://starrycodes.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/starrycodes/LCvGa8j48rtx8kZ8/logo/logo_alt.png?fit=max\u0026auto=format\u0026n=LCvGa8j48rtx8kZ8\u0026q=85\u0026s=36a338e503cc3dccf918aeccbe85a3f8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://starrycodes.mintlify.app#website\",\"name\":\"Starry Hub\",\"url\":\"https://starrycodes.mintlify.app\",\"publisher\":{\"@id\":\"https://starrycodes.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks#webpage\",\"url\":\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks\",\"name\":\"File - Size Check Operations\",\"description\":\"Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.\",\"dateModified\":\"2025-12-14T15:28:31.897Z\",\"isPartOf\":{\"@id\":\"https://starrycodes.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Files\",\"item\":\"https://starrycodes.mintlify.app/flutter_extend/api/files/files\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"File - Size Check Operations\",\"item\":\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks#article\",\"headline\":\"File - Size Check Operations\",\"name\":\"File - Size Check Operations\",\"description\":\"Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.\",\"url\":\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks\",\"mainEntityOfPage\":{\"@id\":\"https://starrycodes.mintlify.app/flutter_extend/api/files/file_size_checks#webpage\"},\"dateModified\":\"2025-12-14T15:28:31.897Z\",\"keywords\":\"Flutter Files, Files, File Handling, Flutter\",\"publisher\":{\"@id\":\"https://starrycodes.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://starrycodes.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Starry Hub\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Starry Hub\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/flutter_extend/api/files/file_size_checks.md","siteName":"Starry Hub","nav":{"global":null,"tabs":[{"tab":"Home","icon":"home","pages":[{"title":"Home","href":""}]},{"tab":"Projects","icon":"layer-group","pages":[{"title":"Projects","href":"/projects/projects"}]},{"tab":"Packages","icon":"book","menu":[{"item":"Flutter_Extend","pages":[{"title":"Flutter Extend","sidebarTitle":"Introduction","mode":"wide","href":"/flutter_extend/introduction"},{"group":"Get Started","pages":[{"title":"Installation Guide","sidebarTitle":"Installation","icon":"download","href":"/flutter_extend/installation"}]},{"group":"Animations","pages":[{"title":"Widget - Fade \u0026 Move Animations","sidebarTitle":"Fade Animations","icon":"water","href":"/flutter_extend/api/animations/fade"},{"title":"Widget - Pulse \u0026 Attention Animations","sidebarTitle":"Pulse Animations","icon":"water","href":"/flutter_extend/api/animations/pulse"},{"title":"Widget - Shake Animation","sidebarTitle":"Shake Animations","icon":"water","href":"/flutter_extend/api/animations/shake"}]},{"group":"Build Context","pages":[{"title":"BuildContext - Focus \u0026 Keyboard Control","sidebarTitle":"Keyboard Focus","icon":"keyboard","href":"/flutter_extend/api/context/focus"},{"title":"BuildContext Superpowers - MediaQuery","sidebarTitle":"Media Query","icon":"water","href":"/flutter_extend/api/context/media-query"},{"title":"BuildContext - Navigation Extensions","sidebarTitle":"Navigator","icon":"keyboard","href":"/flutter_extend/api/context/navigator"},{"title":"BuildContext - Platform Extensions","sidebarTitle":"Platform","icon":"mobile","href":"/flutter_extend/api/context/platform"},{"title":"BuildContext - Theme Extensions","sidebarTitle":"Theming","icon":"palette","href":"/flutter_extend/api/context/theme"}]},{"group":"Colors","pages":[{"title":"Color - The Color Calculator","sidebarTitle":"Colors","icon":"palette","href":"/flutter_extend/api/colors/colors"}]},{"group":"Date \u0026 Time","pages":[{"title":"DateTime - Comparison Extensions","sidebarTitle":"Date-Time Comparison","icon":"calendar","href":"/flutter_extend/api/date_time/date-time-comparison"},{"title":"DateTime - Formatting Extensions","sidebarTitle":"Date-Time Formatting","icon":"calendar","href":"/flutter_extend/api/date_time/date-time-formatting"},{"title":"DateTime - Manipulation Extensions","sidebarTitle":"Date-Time Manipulation","icon":"calendar","href":"/flutter_extend/api/date_time/date-time-manipulation"}]},{"group":"Extend Generators","pages":[{"title":"ExtendGenerator - Instant Mock Data","sidebarTitle":"Extend Generator","icon":"database","tag":"NEW","href":"/flutter_extend/api/generators/extend-generator"},{"title":"int - Mock Data \u0026 Assets","sidebarTitle":"Int Generators","icon":"database","tag":"NEW","href":"/flutter_extend/api/generators/int-generator"},{"title":"String - Asset \u0026 Generator","sidebarTitle":"String Generators","icon":"database","tag":"NEW","href":"/flutter_extend/api/generators/string-generator"}]},{"group":"Files","pages":[{"title":"File - IO Utility Extensions","sidebarTitle":"General","icon":"folder","href":"/flutter_extend/api/files/files"},{"title":"File - Operations","sidebarTitle":"File Operations","icon":"folder","description":" Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.","href":"/flutter_extend/api/files/file_operations"},{"title":"File - Size Check Operations","sidebarTitle":"File Size Checks","icon":"folder","href":"/flutter_extend/api/files/file_size_checks"},{"title":"File - Type Checks","sidebarTitle":"File Types","icon":"folder","description":" Powerful extensions for dart:io.File to simplify size formatting, path manipulation, and type checking for local files.","href":"/flutter_extend/api/files/file_types"}]},{"group":"Futures","pages":[{"title":"Future - Async Control","sidebarTitle":"General Futures","icon":"forward","href":"/flutter_extend/api/futures/general-futures"},{"title":"Iterable\u003cFuture> - Concurrent Execution","sidebarTitle":"Iterable Futures","icon":"forward","href":"/flutter_extend/api/futures/iterable-futures"},{"title":"String - Future Extensions","sidebarTitle":"String Futures","icon":"forward","href":"/flutter_extend/api/futures/string-futures"}]},{"group":"Lists","pages":[{"title":"List/Iterable - The Safety Net","sidebarTitle":"List Access","icon":"list","href":"/flutter_extend/api/lists/list-access"},{"title":"List/Iterable - Transformations \u0026 Sorting","sidebarTitle":"List Transformations","icon":"list","href":"/flutter_extend/api/lists/list-transform"}]},{"group":"Number","pages":[{"title":"num - Formatting \u0026 Currency","sidebarTitle":"Formatting \u0026 Currency","icon":"hashtag","href":"/flutter_extend/api/number/currency"},{"title":"int - Duration Shortcuts","sidebarTitle":"Duration Shortcuts","icon":"hashtag","href":"/flutter_extend/api/number/duration"}]},{"group":"String","pages":[{"title":"String - Currency \u0026 Number Formatting","sidebarTitle":"Currency \u0026 Number Formatting","icon":"text-height","href":"/flutter_extend/api/string/currency"},{"title":"String - Regex \u0026 Cleaning","sidebarTitle":"Regex \u0026 Cleaning","icon":"text-height","href":"/flutter_extend/api/string/regex"},{"title":"String - Formatting \u0026 Case","sidebarTitle":"String Formatting","icon":"text-height","href":"/flutter_extend/api/string/string-formatter"},{"title":"String - Transformation \u0026 Utilities","sidebarTitle":"String Transformation","icon":"text-height","href":"/flutter_extend/api/string/string-transformer"},{"title":"String - Validation \u0026 Integrity","sidebarTitle":"String Validation","icon":"text-height","href":"/flutter_extend/api/string/string-validation"}]},{"group":"Widgets","pages":[{"title":"Scaffold - System UI Control","sidebarTitle":"Scaffold Control","icon":"grip","href":"/flutter_extend/api/widget/scaffold"},{"title":"Text - Widget Extensions","sidebarTitle":"Text Manipulation","icon":"grip","href":"/flutter_extend/api/widget/text"},{"title":"Widget - Chaining \u0026 Layout","sidebarTitle":"Widgets Chaining \u0026 Layout","icon":"grip","href":"/flutter_extend/api/widget/widgets"}]},{"title":"Changelog","sidebarTitle":"Changelog","icon":"palette","href":"/flutter_extend/changelog/changelog"},{"title":"Contributors","sidebarTitle":"Contributors","icon":"people-group","href":"/flutter_extend/contributors/contributors"},{"title":"License (MIT)","icon":"scale-balanced","href":"/flutter_extend/license"}]}]},{"tab":"Blogs","icon":"book","menu":[{"item":"Articles","pages":[{"title":"Articles","href":"/blogs/articles/articles"}]}],"pages":[{"title":"Blogs","href":"/blogs/articles/articles"}]}]},"basePath":"","title":"File - Size Check Operations - Starry Hub","buildId":"dpl_GRSyrvXT6FFTpZZTGz5iZPp3D2zE","deploymentId":"dpl_GRSyrvXT6FFTpZZTGz5iZPp3D2zE","dynamics":["10e4515597"],"chunks":["BannerMarkdown-FEEjvLRh.js","dist-D7YyC486.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}