mc_gallery/doc/api/l10n_generated_l10n/AppLocalizationDelegate/load.html
2022-12-28 12:07:42 +01:00

157 lines
6.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
<meta name="description" content="API docs for the load method from the AppLocalizationDelegate class, for the Dart programming language.">
<title>load method - AppLocalizationDelegate class - l10n library - Dart API</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="../../static-assets/github.css?v1">
<link rel="stylesheet" href="../../static-assets/styles.css?v1">
<link rel="icon" href="../../static-assets/favicon.png?v1">
</head>
<body data-base-href="../../" data-using-base-href="false">
<div id="overlay-under-drawer"></div>
<header id="title">
<button id="sidenav-left-toggle" type="button">&nbsp;</button>
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li><a href="../../index.html">mc_gallery</a></li>
<li><a href="../../l10n_generated_l10n/l10n_generated_l10n-library.html">l10n</a></li>
<li><a href="../../l10n_generated_l10n/AppLocalizationDelegate-class.html">AppLocalizationDelegate</a></li>
<li class="self-crumb">load method</li>
</ol>
<div class="self-name">load</div>
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>
<main>
<div id="dartdoc-main-content" class="main-content">
<div>
<h1><span class="kind-method">load</span> method
<a href="https://dart.dev/null-safety" class="feature feature-null-safety" title="Supports the null safety language feature.">Null safety</a>
</h1></div>
<section class="multi-line-signature">
<div>
<ol class="annotation-list">
<li>@<a href="https://api.flutter.dev/flutter/dart-core/override-constant.html">override</a></li>
</ol>
</div>
<span class="returntype"><a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../../l10n_generated_l10n/Strings-class.html">Strings</a></span>&gt;</span></span>
<span class="name ">load</span>(<wbr><ol class="parameter-list"><li><span class="parameter" id="load-param-locale"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-ui/Locale-class.html">Locale</a></span> <span class="parameter-name">locale</span></span></li>
</ol>)
<div class="features">override</div>
</section>
<section class="desc markdown">
<p>Start loading the resources for <code>locale</code>. The returned future completes
when the resources have finished loading.</p>
<p>It's assumed that the this method will return an object that contains
a collection of related resources (typically defined with one method per
resource). The object will be retrieved with <a href="https://api.flutter.dev/flutter/widgets/Localizations/of.html">Localizations.of</a>.</p>
</section>
<section class="summary source-code" id="source">
<h2><span>Implementation</span></h2>
<pre class="language-dart"><code class="language-dart">@override
Future&lt;Strings&gt; load(Locale locale) =&gt; Strings.load(locale);</code></pre>
</section>
</div> <!-- /.main-content -->
<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
<header id="header-search-sidebar" class="hidden-l">
<form class="search-sidebar" role="search">
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
<li><a href="../../index.html">mc_gallery</a></li>
<li><a href="../../l10n_generated_l10n/l10n_generated_l10n-library.html">l10n</a></li>
<li><a href="../../l10n_generated_l10n/AppLocalizationDelegate-class.html">AppLocalizationDelegate</a></li>
<li class="self-crumb">load method</li>
</ol>
<h5>AppLocalizationDelegate class</h5>
<ol>
<li class="section-title"><a href="../../l10n_generated_l10n/AppLocalizationDelegate-class.html#constructors">Constructors</a></li>
<li><a href="../../l10n_generated_l10n/AppLocalizationDelegate/AppLocalizationDelegate.html">AppLocalizationDelegate</a></li>
<li class="section-title">
<a href="../../l10n_generated_l10n/AppLocalizationDelegate-class.html#instance-properties">Properties</a>
</li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
<li><a href="../../l10n_generated_l10n/AppLocalizationDelegate/supportedLocales.html">supportedLocales</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/LocalizationsDelegate/type.html">type</a></li>
<li class="section-title"><a href="../../l10n_generated_l10n/AppLocalizationDelegate-class.html#instance-methods">Methods</a></li>
<li><a href="../../l10n_generated_l10n/AppLocalizationDelegate/isSupported.html">isSupported</a></li>
<li><a href="../../l10n_generated_l10n/AppLocalizationDelegate/load.html">load</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
<li><a href="../../l10n_generated_l10n/AppLocalizationDelegate/shouldReload.html">shouldReload</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/LocalizationsDelegate/toString.html">toString</a></li>
<li class="section-title inherited"><a href="../../l10n_generated_l10n/AppLocalizationDelegate-class.html#operators">Operators</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></li>
</ol>
</div><!--/.sidebar-offcanvas-->
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
</div><!--/.sidebar-offcanvas-->
</main>
<footer>
<span class="no-break">
mc_gallery
1.0.0+1
</span>
</footer>
<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/docs.dart.js"></script>
</body>
</html>