mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  1. {TResult? text(
    1. Text value
    )?,
  2. TResult? sizedBox(
    1. SizedBox value
    )?,
  3. TResult? sizedBoxExpanded(
    1. SizedBoxExpanded value
    )?,
  4. TResult? sizedBoxShrink(
    1. SizedBoxShrink value
    )?,
  5. TResult? container(
    1. Container value
    )?,
  6. TResult? constrainedBox(
    1. ConstrainedBox value
    )?,
  7. TResult? flex(
    1. Flex value
    )?,
  8. TResult? wrap(
    1. Wrap value
    )?,
  9. TResult? row(
    1. Row value
    )?,
  10. TResult? column(
    1. Column value
    )?,
  11. TResult? stack(
    1. Stack value
    )?,
  12. TResult? positioned(
    1. Positioned value
    )?,
  13. TResult? image(
    1. Image value
    )?,
  14. TResult? flexible(
    1. Flexible value
    )?,
  15. TResult? expanded(
    1. Expanded value
    )?,
  16. TResult? center(
    1. Center value
    )?,
  17. TResult? padding(
    1. Padding value
    )?,
  18. TResult? spacer(
    1. Spacer value
    )?,
  19. TResult? scrollBar(
    1. ScrollBar value
    )?,
  20. TResult? singleChildScrollView(
    1. SingleChildScrollView value
    )?,
  21. TResult? listView(
    1. ListView value
    )?,
  22. TResult? icon(
    1. Icon value
    )?,
  23. TResult? iconButton(
    1. IconButton value
    )?,
  24. TResult? scaffold(
    1. Scaffold value
    )?,
  25. TResult? floatingActionButton(
    1. FloatingActionButton value
    )?,
  26. TResult? floatingActionButtonExtended(
    1. FloatingActionButtonExtended value
    )?,
  27. TResult? card(
    1. Card value
    )?,
  28. TResult? divider(
    1. Divider value
    )?,
  29. TResult? verticalDivider(
    1. VerticalDivider value
    )?,
  30. TResult? material(
    1. Material value
    )?,
  31. TResult? materialButton(
    1. MaterialButton value
    )?,
  32. TResult? outlinedButton(
    1. OutlinedButton value
    )?,
  33. TResult? outlinedButtonIcon(
    1. OutlinedButtonIcon value
    )?,
  34. TResult? textButton(
    1. TextButton value
    )?,
  35. TResult? textButtonIcon(
    1. TextButtonIcon value
    )?,
  36. TResult? filledButton(
    1. FilledButton value
    )?,
  37. TResult? filledButtonIcon(
    1. FilledButtonIcon value
    )?,
  38. TResult? filledTonalButton(
    1. FilledTonalButton value
    )?,
  39. TResult? filledTonalButtonIcon(
    1. FilledTonalButtonIcon value
    )?,
  40. TResult? elevatedButton(
    1. ElevatedButton value
    )?,
  41. TResult? elevatedButtonIcon(
    1. ElevatedButtonIcon value
    )?,
  42. TResult? fractionallySizedBox(
    1. FractionallySizedBox value
    )?,
  43. TResult? fittedBox(
    1. FittedBox value
    )?,
  44. TResult? gridView(
    1. GridView value
    )?,
  45. TResult? placeholder(
    1. Placeholder value
    )?,
  46. TResult? circularProgressIndicator(
    1. CircularProgressIndicator value
    )?,
  47. TResult? linearProgressIndicator(
    1. LinearProgressIndicator value
    )?,
  48. TResult? materialApp(
    1. MaterialApp value
    )?,
  49. TResult? interactiveViewer(
    1. InteractiveViewer value
    )?,
  50. TResult? customScrollView(
    1. CustomScrollView value
    )?,
  51. TResult? listViewCustom(
    1. ListViewCustom value
    )?,
  52. TResult? safeArea(
    1. SafeArea value
    )?,
  53. TResult? offstage(
    1. Offstage value
    )?,
  54. TResult? opacity(
    1. Opacity value
    )?,
  55. TResult? nestedScrollView(
    1. NestedScrollView value
    )?,
  56. TResult? aspectRatio(
    1. AspectRatio value
    )?,
  57. TResult? chip(
    1. Chip value
    )?,
  58. TResult? magnifier(
    1. Magnifier value
    )?,
  59. TResult? table(
    1. Table value
    )?,
  60. TResult? dataTable(
    1. DataTable value
    )?,
  61. TResult? repaintBoundary(
    1. RepaintBoundary value
    )?,
  62. TResult? clipRect(
    1. ClipRect value
    )?,
  63. TResult? clipRRect(
    1. ClipRRect value
    )?,
  64. TResult? clipOval(
    1. ClipOval value
    )?,
  65. TResult? checkbox(
    1. Checkbox value
    )?,
  66. TResult? listTile(
    1. ListTile value
    )?,
  67. TResult? expansionTile(
    1. ExpansionTile value
    )?,
  68. TResult? gridTile(
    1. GridTile value
    )?,
  69. TResult? defaultTabController(
    1. DefaultTabController value
    )?,
  70. TResult? defaultTextStyle(
    1. DefaultTextStyle value
    )?,
  71. TResult? theme(
    1. Theme value
    )?,
  72. TResult? tabBarView(
    1. TabBarView value
    )?,
  73. TResult? navigationRail(
    1. NavigationRail value
    )?,
  74. TResult? navigationBar(
    1. NavigationBar value
    )?,
  75. TResult? tab(
    1. Tab value
    )?,
  76. TResult? form(
    1. Form value
    )?,
  77. TResult? textRich(
    1. RichText value
    )?,
  78. TResult? selectableText(
    1. SelectableText value
    )?,
  79. TResult? selectableTextRich(
    1. RichSelectableText value
    )?,
  80. TResult? inkWell(
    1. InkWell value
    )?,
  81. TResult? gestureDetector(
    1. GestureDetector value
    )?,
  82. TResult? textFormField(
    1. TextFormField value
    )?,
  83. TResult? materialSwitch(
    1. Switch value
    )?,
  84. TResult? inputDatePickerFormField(
    1. InputDatePickerFormField value
    )?,
  85. TResult? dropdownButtonFormField(
    1. DropdownButtonFormField value
    )?,
  86. TResult? popupMenuButton(
    1. PopupMenuButton value
    )?,
  87. TResult? ignorePointer(
    1. IgnorePointer value
    )?,
  88. TResult? responsive(
    1. ResponsiveWidget value
    )?,
  89. TResult? platform(
    1. PlatformWidget value
    )?,
  90. TResult? custom(
    1. CustomWidget value
    )?,
  91. TResult? network(
    1. NetworkWidget value
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(Text value)? text,
  TResult? Function(SizedBox value)? sizedBox,
  TResult? Function(SizedBoxExpanded value)? sizedBoxExpanded,
  TResult? Function(SizedBoxShrink value)? sizedBoxShrink,
  TResult? Function(Container value)? container,
  TResult? Function(ConstrainedBox value)? constrainedBox,
  TResult? Function(Flex value)? flex,
  TResult? Function(Wrap value)? wrap,
  TResult? Function(Row value)? row,
  TResult? Function(Column value)? column,
  TResult? Function(Stack value)? stack,
  TResult? Function(Positioned value)? positioned,
  TResult? Function(Image value)? image,
  TResult? Function(Flexible value)? flexible,
  TResult? Function(Expanded value)? expanded,
  TResult? Function(Center value)? center,
  TResult? Function(Padding value)? padding,
  TResult? Function(Spacer value)? spacer,
  TResult? Function(ScrollBar value)? scrollBar,
  TResult? Function(SingleChildScrollView value)? singleChildScrollView,
  TResult? Function(ListView value)? listView,
  TResult? Function(Icon value)? icon,
  TResult? Function(IconButton value)? iconButton,
  TResult? Function(Scaffold value)? scaffold,
  TResult? Function(FloatingActionButton value)? floatingActionButton,
  TResult? Function(FloatingActionButtonExtended value)?
      floatingActionButtonExtended,
  TResult? Function(Card value)? card,
  TResult? Function(Divider value)? divider,
  TResult? Function(VerticalDivider value)? verticalDivider,
  TResult? Function(Material value)? material,
  TResult? Function(MaterialButton value)? materialButton,
  TResult? Function(OutlinedButton value)? outlinedButton,
  TResult? Function(OutlinedButtonIcon value)? outlinedButtonIcon,
  TResult? Function(TextButton value)? textButton,
  TResult? Function(TextButtonIcon value)? textButtonIcon,
  TResult? Function(FilledButton value)? filledButton,
  TResult? Function(FilledButtonIcon value)? filledButtonIcon,
  TResult? Function(FilledTonalButton value)? filledTonalButton,
  TResult? Function(FilledTonalButtonIcon value)? filledTonalButtonIcon,
  TResult? Function(ElevatedButton value)? elevatedButton,
  TResult? Function(ElevatedButtonIcon value)? elevatedButtonIcon,
  TResult? Function(FractionallySizedBox value)? fractionallySizedBox,
  TResult? Function(FittedBox value)? fittedBox,
  TResult? Function(GridView value)? gridView,
  TResult? Function(Placeholder value)? placeholder,
  TResult? Function(CircularProgressIndicator value)?
      circularProgressIndicator,
  TResult? Function(LinearProgressIndicator value)? linearProgressIndicator,
  TResult? Function(MaterialApp value)? materialApp,
  TResult? Function(InteractiveViewer value)? interactiveViewer,
  TResult? Function(CustomScrollView value)? customScrollView,
  TResult? Function(ListViewCustom value)? listViewCustom,
  TResult? Function(SafeArea value)? safeArea,
  TResult? Function(Offstage value)? offstage,
  TResult? Function(Opacity value)? opacity,
  TResult? Function(NestedScrollView value)? nestedScrollView,
  TResult? Function(AspectRatio value)? aspectRatio,
  TResult? Function(Chip value)? chip,
  TResult? Function(Magnifier value)? magnifier,
  TResult? Function(Table value)? table,
  TResult? Function(DataTable value)? dataTable,
  TResult? Function(RepaintBoundary value)? repaintBoundary,
  TResult? Function(ClipRect value)? clipRect,
  TResult? Function(ClipRRect value)? clipRRect,
  TResult? Function(ClipOval value)? clipOval,
  TResult? Function(Checkbox value)? checkbox,
  TResult? Function(ListTile value)? listTile,
  TResult? Function(ExpansionTile value)? expansionTile,
  TResult? Function(GridTile value)? gridTile,
  TResult? Function(DefaultTabController value)? defaultTabController,
  TResult? Function(DefaultTextStyle value)? defaultTextStyle,
  TResult? Function(Theme value)? theme,
  TResult? Function(TabBarView value)? tabBarView,
  TResult? Function(NavigationRail value)? navigationRail,
  TResult? Function(NavigationBar value)? navigationBar,
  TResult? Function(Tab value)? tab,
  TResult? Function(Form value)? form,
  TResult? Function(RichText value)? textRich,
  TResult? Function(SelectableText value)? selectableText,
  TResult? Function(RichSelectableText value)? selectableTextRich,
  TResult? Function(InkWell value)? inkWell,
  TResult? Function(GestureDetector value)? gestureDetector,
  TResult? Function(TextFormField value)? textFormField,
  TResult? Function(Switch value)? materialSwitch,
  TResult? Function(InputDatePickerFormField value)? inputDatePickerFormField,
  TResult? Function(DropdownButtonFormField value)? dropdownButtonFormField,
  TResult? Function(PopupMenuButton value)? popupMenuButton,
  TResult? Function(IgnorePointer value)? ignorePointer,
  TResult? Function(ResponsiveWidget value)? responsive,
  TResult? Function(PlatformWidget value)? platform,
  TResult? Function(CustomWidget value)? custom,
  TResult? Function(NetworkWidget value)? network,
}) =>
    throw _privateConstructorUsedError;