call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FSidebarItemStyle(...));

Implementation

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