call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FDialogStyle(...));

Implementation

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