call method

  1. @useResult
FDialogRouteStyle call(
  1. Object? _
)
inherited

Returns itself.

Allows FDialogRouteStyle to replace functions that accept and return a FDialogRouteStyle, such as a style's copyWith(...) function.

Example

Given:

void copyWith(FDialogRouteStyle Function(FDialogRouteStyle) nestedStyle) {}

The following:

copyWith((style) => FDialogRouteStyle(...));

Can be replaced with:

copyWith(FDialogRouteStyle(...));

Implementation

@useResult
FDialogRouteStyle call(Object? _) => this as FDialogRouteStyle;