Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor refactoring (#98) #134

Merged
merged 2 commits into from
Feb 22, 2025

Conversation

gavv
Copy link
Member

@gavv gavv commented Feb 22, 2025

For #98.

Minor refactoring

  • Simplify ModelRoot ctor.
  • Don't use late when not needed.
  • Replace SenderFactory and ReceiverFactory with
    static methods.
  • Rename _setDefaultValues to _init()
  • Rename requestAsyncStart() to requestStart(); "Async" is a
    bit confusing because it's not related to async keyword
  • Remove public setters for receiverIsAlive and senderIsAlive
    in AndroidBackend
  • Import model classes via model.dart

- Simplify ModelRoot ctor.
- Don't use late when not needed.
- Replace SenderFactory and ReceiverFactory with
  static methods.
- Rename _setDefaultValues to _init()
- Rename requestAsyncStart() to requestStart(); "Async" is a
  bit confusing because it's not related to `async` keyword
- Remove public setters for receiverIsAlive and senderIsAlive
  in AndroidBackend
@gavv gavv added the category: flutter migration Task related to migration to Flutter label Feb 22, 2025
@gavv gavv requested a review from Izchomatik February 22, 2025 09:20
@gavv gavv changed the title Minor refactoring Minor refactoring (#98) Feb 22, 2025
@gavv gavv added the status: ready for review Pull request can be reviewed label Feb 22, 2025
@Izchomatik Izchomatik merged commit f67f99c into roc-streaming:flutter Feb 22, 2025
6 checks passed
@gavv gavv removed the status: ready for review Pull request can be reviewed label Feb 22, 2025
@gavv gavv deleted the feature/minor_refactoring branch February 22, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: flutter migration Task related to migration to Flutter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants