child property

Widget child
final

The widget to contain translations.

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ComponentLocalisation(
      localeOverride: Locale('de'),
      child: MaterialApp(
        body:
        builder: (context, child) {
           return Text(ComponentStrings.of(context).get('VIEW','View'));
         },
       ),
    );
  }
}

Implementation

final Widget child;